Back| 50 ints array - Testing for loop with -- and ++ |
| for (--) x 1.19 faster | 0.0554 | for(++) | 0.0660 |
| 50 ints array - Testing for loop with more complicated -- and ++ |
| for (--) x 1.13 faster | 0.0571 | for(++) | 0.0647 |
| 50 ints array - foreach (no keys) versus for |
| Foreach x 1.13 faster | 0.0576 | For | 0.0648 |
| 50 ints array - foreach (no keys) versus reset and next |
| Foreach | 0.0817 | Reset-Next x 1.38 faster | 0.0592 |
| 50 ints array - foreach (no keys) vs list(¸$v)=each |
| Foreach x 1.77 faster | 0.0564 | List-Each | 0.0997 |
| 50 ints array - foreach (with keys) vs list($k¸$v)=each |
| Foreach x 1.53 faster | 0.0729 | List-Each | 0.1119 |
| Testing foreach versus array_map with php function with 50 int element array |
| Foreach x 1.09 faster | 0.0631 | Array_Map | 0.0687 |
| 50 strings array - Testing for loop with -- and ++ |
| for (--) x 1.29 faster | 0.0506 | for(++) | 0.0652 |
| 50 ints array - Testing for loop with more complicated -- and ++ |
| for (--) x 1.10 faster | 0.0573 | for(++) | 0.0631 |
| 50 strings array - foreach (no keys) versus for(++) |
| Foreach x 1.14 faster | 0.0547 | For | 0.0622 |
| 50 strings array - foreach (no keys) versus reset and next |
| Foreach x 1.33 faster | 0.0553 | Reset-Next | 0.0737 |
| 50 strings array - foreach (no keys) vs list(¸$v)=each |
| Foreach x 1.67 faster | 0.0588 | List-Each | 0.0980 |
| 50 strings array - foreach (with keys) vs list($k¸$v)=each |
| Foreach x 1.59 faster | 0.0702 | List-Each | 0.1113 |
| Testing foreach versus array_map with php function with 50 string element array |
| Foreach | 0.0667 | Array_Map x 1.16 faster | 0.0577 |
| Testing foreach with crc32 versus array_map with php function with 50 element array |
| Foreach | 0.0971 | Array_Map x 1.48 faster | 0.0656 |
Testing PHP 4.3.3 Completed on WINNT. Benchmark done on: 29-Feb-2004 15:21:24