Back| 50 ints array - Testing for loop with -- and ++ |
| for (--) x 1.28 faster | 0.0532 | for(++) | 0.0680 |
| 50 ints array - Testing for loop with more complicated -- and ++ |
| for (--) x 1.10 faster | 0.0602 | for(++) | 0.0665 |
| 50 ints array - foreach (no keys) versus for |
| Foreach x 1.06 faster | 0.0644 | For | 0.0682 |
| 50 ints array - foreach (no keys) versus reset and next |
| Foreach x 1.00 faster | 0.0604 | Reset-Next | 0.0605 |
| 50 ints array - foreach (no keys) vs list(¸$v)=each |
| Foreach x 1.75 faster | 0.0595 | List-Each | 0.1044 |
| 50 ints array - foreach (with keys) vs list($k¸$v)=each |
| Foreach x 1.70 faster | 0.0689 | List-Each | 0.1168 |
| Testing foreach versus array_map with php function with 50 int element array |
| Foreach x 1.07 faster | 0.0627 | Array_Map | 0.0670 |
| 50 strings array - Testing for loop with -- and ++ |
| for (--) x 1.21 faster | 0.0582 | for(++) | 0.0704 |
| 50 ints array - Testing for loop with more complicated -- and ++ |
| for (--) x 1.07 faster | 0.0602 | for(++) | 0.0646 |
| 50 strings array - foreach (no keys) versus for(++) |
| Foreach x 1.13 faster | 0.0598 | For | 0.0676 |
| 50 strings array - foreach (no keys) versus reset and next |
| Foreach x 1.31 faster | 0.0665 | Reset-Next | 0.0871 |
| 50 strings array - foreach (no keys) vs list(¸$v)=each |
| Foreach x 1.69 faster | 0.0607 | List-Each | 0.1026 |
| 50 strings array - foreach (with keys) vs list($k¸$v)=each |
| Foreach x 1.73 faster | 0.0681 | List-Each | 0.1177 |
| Testing foreach versus array_map with php function with 50 string element array |
| Foreach | 0.0652 | Array_Map x 1.09 faster | 0.0600 |
| Testing foreach with crc32 versus array_map with php function with 50 element array |
| Foreach | 0.1009 | Array_Map x 1.82 faster | 0.0554 |
Testing PHP 5.0.0b4 Completed on WINNT. Benchmark done on: 29-Feb-2004 15:23:15