Back
  50 ints array - Testing for loop with -- and ++
for (--) x 1.20 faster 0.1160 for(++) 0.1394
  50 ints array - Testing for loop with more complicated -- and ++
for (--) x 1.09 faster 0.1270 for(++) 0.1378
  50 ints array - foreach (no keys) versus for
Foreach x 1.05 faster 0.1346For 0.1409
  50 ints array - foreach (no keys) versus reset and next
Foreach 0.1355 Reset-Next x 1.13 faster 0.1200
  50 ints array - foreach (no keys) vs list(¸$v)=each
Foreach x 1.77 faster 0.1346 List-Each 0.2383
  50 ints array - foreach (with keys) vs list($k¸$v)=each
Foreach x 1.69 faster 0.1580 List-Each 0.2674
  Testing foreach versus array_map with php function with 50 int element array
Foreach 0.1342 Array_Map x 1.10 faster 0.1215

  50 strings array - Testing for loop with -- and ++
for (--) x 1.19 faster 0.1176 for(++) 0.1400
  50 ints array - Testing for loop with more complicated -- and ++
for (--) x 1.08 faster 0.1302 for(++) 0.1400
  50 strings array - foreach (no keys) versus for(++)
Foreach x 1.04 faster 0.1350For 0.1402
  50 strings array - foreach (no keys) versus reset and next
Foreach x 1.32 faster 0.1343 Reset-Next 0.1777
  50 strings array - foreach (no keys) vs list(¸$v)=each
Foreach x 1.77 faster 0.1345 List-Each 0.2383
  50 strings array - foreach (with keys) vs list($k¸$v)=each
Foreach x 1.70 faster 0.1573 List-Each 0.2676
  Testing foreach versus array_map with php function with 50 string element array
Foreach x 1.11 faster 0.1211 Array_Map 0.1348

  Testing foreach with crc32 versus array_map with php function with 50 element array
Foreach 0.2581 Array_Map x 2.04 faster 0.1264

Testing PHP 5.0.0b4 Completed on Linux. Benchmark done on: 01-Mar-2004 12:40:38


(c) 2003-2004 John Lim PHP Benchmark Suite (PHP BS 1.0).