Back Run bench2() first.| Source Test Once 50 ints array - Testing for loop with -- and ++ |
| for (--) x 1.31 faster | 0.0560 | for(++) | 0.0734 |
| Source Test Once 50 ints array - Testing for loop with more complicated -- and ++ |
| for (--) x 1.10 faster | 0.0613 | for(++) | 0.0676 |
| Source Test Once 50 ints array - foreach (no keys) versus for |
| Foreach x 1.08 faster | 0.0643 | For | 0.0695 |
| Source Test Once 50 ints array - foreach (no keys) versus reset and next |
| Foreach | 0.0617 | Reset-Next x 1.01 faster | 0.0613 |
| Source Test Once 50 ints array - foreach (no keys) vs list(¸$v)=each |
| Foreach x 1.76 faster | 0.0638 | List-Each | 0.1121 |
| Source Test Once 50 ints array - foreach (with keys) vs list($k¸$v)=each |
| Foreach x 1.77 faster | 0.0713 | List-Each | 0.1261 |
| Source Test Once Testing foreach versus array_map with php function with 50 int element array |
| Foreach | 0.0657 | Array_Map x 1.05 faster | 0.0623 |
| Source Test Once 50 strings array - Testing for loop with -- and ++ |
| for (--) x 1.22 faster | 0.0556 | for(++) | 0.0676 |
| Source Test Once 50 ints array - Testing for loop with more complicated -- and ++ |
| for (--) x 1.15 faster | 0.0592 | for(++) | 0.0679 |
| Source Test Once 50 strings array - foreach (no keys) versus for(++) |
| Foreach x 1.11 faster | 0.0615 | For | 0.0685 |
| Source Test Once 50 strings array - foreach (no keys) versus reset and next |
| Foreach x 1.13 faster | 0.0622 | Reset-Next | 0.0705 |
| Source Test Once 50 strings array - foreach (no keys) vs list(¸$v)=each |
| Foreach x 2.08 faster | 0.0617 | List-Each | 0.1286 |
| Source Test Once 50 strings array - foreach (with keys) vs list($k¸$v)=each |
| Foreach x 1.74 faster | 0.0720 | List-Each | 0.1250 |
| Source Test Once Testing foreach versus array_map with php function with 50 string element array |
| Foreach x 1.01 faster | 0.0664 | Array_Map | 0.0669 |
| Source Test Once Testing foreach with crc32 versus array_map with php function with 50 element array |
| Foreach | 0.1094 | Array_Map x 2.02 faster | 0.0541 |
Testing PHP 5.0.0RC2 Completed on WINNT. Benchmark done on: 03-May-2004 18:17:42