Back
  50 ints array - Testing for loop with -- and ++
for (--) x 1.25 faster 0.1125 for(++) 0.1401
  50 ints array - Testing for loop with more complicated -- and ++
for (--) x 1.07 faster 0.1307 for(++) 0.1399
  50 ints array - foreach (no keys) versus for
Foreach x 1.15 faster 0.1223For 0.1412
  50 ints array - foreach (no keys) versus reset and next
Foreach x 1.01 faster 0.1206 Reset-Next 0.1214
  50 ints array - foreach (no keys) vs list(¸$v)=each
Foreach x 2.00 faster 0.1231 List-Each 0.2467
  50 ints array - foreach (with keys) vs list($k¸$v)=each
Foreach x 1.82 faster 0.1482 List-Each 0.2702
  Testing foreach versus array_map with php function with 50 int element array
Foreach x 1.26 faster 0.1210 Array_Map 0.1526

  50 strings array - Testing for loop with -- and ++
for (--) x 1.25 faster 0.1120 for(++) 0.1399
  50 ints array - Testing for loop with more complicated -- and ++
for (--) x 1.17 faster 0.1284 for(++) 0.1496
  50 strings array - foreach (no keys) versus for(++)
Foreach x 1.14 faster 0.1219For 0.1392
  50 strings array - foreach (no keys) versus reset and next
Foreach x 1.29 faster 0.1210 Reset-Next 0.1559
  50 strings array - foreach (no keys) vs list(¸$v)=each
Foreach x 2.04 faster 0.1204 List-Each 0.2458
  50 strings array - foreach (with keys) vs list($k¸$v)=each
Foreach x 1.82 faster 0.1487 List-Each 0.2702
  Testing foreach versus array_map with php function with 50 string element array
Foreach 0.1440 Array_Map x 1.19 faster 0.1209

  Testing foreach with crc32 versus array_map with php function with 50 element array
Foreach 0.2460 Array_Map x 1.70 faster 0.1450

Testing PHP 4.3.3 Completed on Linux. Benchmark done on: 01-Mar-2004 12:35:58


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