Back| 50 ints array - Testing for loop with -- and ++ |
| for (--) x 1.02 faster | 1.8134 | for(++) | 1.8447 |
| 50 ints array - Testing for loop with more complicated -- and ++ |
| for (--) x 1.07 faster | 1.7465 | for(++) | 1.8622 |
| 50 ints array - foreach (no keys) versus for |
| Foreach | 2.0337 | For x 1.07 faster | 1.9038 |
| 50 ints array - foreach (no keys) versus reset and next |
| Foreach | 2.0556 | Reset-Next x 1.43 faster | 1.4394 |
| 50 ints array - foreach (no keys) vs list(¸$v)=each |
| Foreach x 1.72 faster | 2.0325 | List-Each | 3.4969 |
| 50 ints array - foreach (with keys) vs list($k¸$v)=each |
| Foreach x 1.78 faster | 2.2907 | List-Each | 4.0861 |
| Testing foreach versus array_map with php function with 50 int element array |
| Foreach x 1.10 faster | 2.0440 | Array_Map | 2.2479 |
| 50 strings array - Testing for loop with -- and ++ |
| for (--) x 1.08 faster | 1.7221 | for(++) | 1.8610 |
| 50 ints array - Testing for loop with more complicated -- and ++ |
| for (--) x 1.07 faster | 1.7639 | for(++) | 1.8945 |
| 50 strings array - foreach (no keys) versus for(++) |
| Foreach | 2.0110 | For x 1.05 faster | 1.9146 |
| 50 strings array - foreach (no keys) versus reset and next |
| Foreach x 1.00 faster | 2.0876 | Reset-Next | 2.0950 |
| 50 strings array - foreach (no keys) vs list(¸$v)=each |
| Foreach x 1.82 faster | 2.0686 | List-Each | 3.7635 |
| 50 strings array - foreach (with keys) vs list($k¸$v)=each |
| Foreach x 1.66 faster | 2.3349 | List-Each | 3.8824 |
| Testing foreach versus array_map with php function with 50 string element array |
| Foreach | 2.1718 | Array_Map x 1.08 faster | 2.0150 |
| Testing foreach with crc32 versus array_map with php function with 50 element array |
| Foreach | 3.4851 | Array_Map x 2.36 faster | 1.4756 |
Testing PHP 4.0.6 Completed on Linux. Benchmark done on: 01-Mar-2004 09:07:42