3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); for($i = 0; $i < pow(10, 5); $i++) { $a[$i] = array( md5($i.microtime(true)) ); } $sum = 0; $times['for']['before'] = microtime(true); for($j = 0; $i < count($a); $i++) { $sum += 1000; } $times['for']['after'] = microtime(true); unset($sum); $sum = 0; $times['foreach']['before'] = microtime(true); foreach($a as $k) { $sum += 1000; } $times['foreach']['after'] = microtime(true); unset($sum); $t_for = $times['for']['after'] - $times['for']['before']; $t_foreach = $times['foreach']['after'] - $times['foreach']['before']; var_dump(array( 'for' => sprintf('%f', $t_for), 'foreach' => sprintf('%f', $t_foreach), 'is \'for\' faster than \'foreach\'?' => $t_for < $t_foreach, 'how much faster?' => (1 - ($t_for / $t_foreach))) );
Output for 7.1.0
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.007649" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99959478835484) }
Output for 7.0.14
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.007357" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99957870175325) }
Output for 7.0.6
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.007371" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99932074006987) }
Output for 7.0.5
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.007756" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99907780271126) }
Output for 7.0.4
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.006377" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9995139641829) }
Output for 7.0.3
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.006344" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9995114251353) }
Output for 7.0.2
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.006926" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99955249569707) }
Output for 7.0.1
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.006852" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99940846932739) }
Output for 7.0.0
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.007471" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99945749297932) }
Output for 5.6.28
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.019817" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985562867696) }
Output for 5.6.21
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.030563" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99986738538587) }
Output for 5.6.20
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.031065" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990022717505) }
Output for 5.6.19
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.031879" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99988033804502) }
Output for 5.6.18
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.025007" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99983792081001) }
Output for 5.6.17
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.024504" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99987351255631) }
Output for 5.6.16
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.024629" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99988383461922) }
Output for 5.6.15
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.027855" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99988872911531) }
Output for 5.6.14
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.028111" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985581856887) }
Output for 5.6.13
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.027888" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985466358895) }
Output for 5.6.12
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.028291" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985673473171) }
Output for 5.6.11
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.027318" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99988654215395) }
Output for 5.6.10
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.027254" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99988627615648) }
Output for 5.6.9
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.027910" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9998547790506) }
Output for 5.6.8
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.027701" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985368414711) }
Output for 5.5.35
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.026554" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99988327826462) }
Output for 5.5.34
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.024815" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99987509848004) }
Output for 5.5.33
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.029353" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99987004020631) }
Output for 5.5.32
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.030169" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99989726406297) }
Output for 5.5.31
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.030869" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99986869950724) }
Output for 5.5.30
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.025108" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99980059063156) }
Output for 5.5.29
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.027841" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985441964821) }
Output for 5.5.28
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.028162" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985607856417) }
Output for 5.5.27
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.028540" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99989139969091) }
Output for 5.5.26
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.027030" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985005115902) }
Output for 5.5.25
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.026589" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9998475637094) }
Output for 5.5.24
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.028999" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99986023299981) }
Output for 5.4.45
array(4) { ["for"]=> string(8) "0.000012" ["foreach"]=> string(8) "0.223949" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99994676949381) }
Output for 5.4.44
array(4) { ["for"]=> string(8) "0.000012" ["foreach"]=> string(8) "0.273811" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99995646290727) }
Output for 5.4.43
array(4) { ["for"]=> string(8) "0.000011" ["foreach"]=> string(8) "0.088963" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99987672088268) }
Output for 5.4.42
array(4) { ["for"]=> string(8) "0.000011" ["foreach"]=> string(8) "0.134157" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99991825056203) }
Output for 5.4.41
array(4) { ["for"]=> string(8) "0.000011" ["foreach"]=> string(8) "0.148059" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992592640305) }
Output for 5.4.40
array(4) { ["for"]=> string(8) "0.000010" ["foreach"]=> string(8) "0.042670" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99976532510854) }
Output for 5.4.39
array(4) { ["for"]=> string(8) "0.000011" ["foreach"]=> string(8) "0.044235" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9997520683429) }
Output for 5.4.38
array(4) { ["for"]=> string(8) "0.000010" ["foreach"]=> string(8) "0.063866" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99984320986733) }
Output for 5.4.37
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.035834" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99977378425671) }
Output for 5.4.36
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.042800" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9998106018405) }
Output for 5.4.35
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.037257" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99980802088733) }
Output for 5.4.34
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.040271" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99980462852779) }
Output for 5.4.32
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.027604" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9998531698048) }
Output for 5.4.31
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.026957" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99984964401008) }
Output for 5.4.30
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.026577" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99984749670324) }
Output for 5.4.29
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.025610" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99980450021877) }
Output for 5.4.28
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.026772" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99981298423724) }
Output for 5.4.27
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.036372" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99986234472813) }
Output for 5.4.26
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.074177" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990678867707) }
Output for 5.4.25
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.072380" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99993082616616) }
Output for 5.4.24
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.033507" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990749898605) }
Output for 5.4.23
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.039055" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99982296346943) }
Output for 5.4.22
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.040305" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99987577786717) }
Output for 5.4.21
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.035275" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985806399286) }
Output for 5.4.20
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.032576" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99980971061376) }
Output for 5.4.19
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.081138" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990009314845) }
Output for 5.4.18
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.030768" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99986826913391) }
Output for 5.4.17
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.040591" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990014742938) }
Output for 5.4.16
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.034999" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985694433091) }
Output for 5.4.15
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.035327" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99983127716438) }
Output for 5.4.14
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.055247" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990937416387) }
Output for 5.4.13
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.034074" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99988104984012) }
Output for 5.4.12
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.042945" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99991117230352) }
Output for 5.4.11
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.028923" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985986431568) }
Output for 5.4.10
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.046723" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99982650494206) }
Output for 5.4.9
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.061412" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990294315186) }
Output for 5.4.8
array(4) { ["for"]=> string(8) "0.000009" ["foreach"]=> string(8) "0.060493" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985023214018) }
Output for 5.4.7
array(4) { ["for"]=> string(8) "0.000011" ["foreach"]=> string(8) "0.070414" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99984424572607) }
Output for 5.4.6
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.071469" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992994465628) }
Output for 5.4.5
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.078783" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992434329984) }
Output for 5.4.4
array(4) { ["for"]=> string(8) "0.000011" ["foreach"]=> string(8) "0.074125" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985204388507) }
Output for 5.4.3
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.082774" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99993951264474) }
Output for 5.4.2
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.060630" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99989775895494) }
Output for 5.4.1
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.086840" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992038063547) }
Output for 5.4.0
array(4) { ["for"]=> string(8) "0.000000" ["foreach"]=> string(8) "0.038141" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(1) }
Output for 5.3.29
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.027441" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99981754361576) }
Output for 5.3.28
array(4) { ["for"]=> string(8) "0.000014" ["foreach"]=> string(8) "0.076812" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99981686857682) }
Output for 5.3.27
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.074236" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99989401608386) }
Output for 5.3.26
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.031430" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99984070031177) }
Output for 5.3.25
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.035235" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99983083647977) }
Output for 5.3.24
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.069925" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99991475926311) }
Output for 5.3.23
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.057651" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99988006914634) }
Output for 5.3.22
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.027644" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99977575961431) }
Output for 5.3.21
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.062242" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99991955933839) }
Output for 5.3.20
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.065623" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992370378175) }
Output for 5.3.19
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.059906" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9999164225675) }
Output for 5.3.18
array(4) { ["for"]=> string(8) "0.000000" ["foreach"]=> string(8) "0.055446" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(1) }
Output for 5.3.17
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.062903" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990524380768) }
Output for 5.3.16
array(4) { ["for"]=> string(8) "0.000009" ["foreach"]=> string(8) "0.074027" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99987761359391) }
Output for 5.3.15
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.106677" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99993518611642) }
Output for 5.3.14
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.071156" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99991623359435) }
Output for 5.3.13
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.064787" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992271939412) }
Output for 5.3.12
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.068474" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99989554317549) }
Output for 5.3.11
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.040530" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9998235242213) }
Output for 5.3.10
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.066667" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99991059326732) }
Output for 5.3.9
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.064721" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99987843512856) }
Output for 5.3.8
array(4) { ["for"]=> string(8) "0.000010" ["foreach"]=> string(8) "0.081438" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99987704054149) }
Output for 5.3.7
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.093907" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99994668345715) }
Output for 5.3.6
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.110424" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99995465851384) }
Output for 5.3.5
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.082120" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992741778613) }
Output for 5.3.4
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.081721" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99993873317715) }
Output for 5.3.3
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.086032" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99993071817539) }
Output for 5.3.2
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.075205" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99993342463669) }
Output for 5.3.1
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.343322" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99998263885272) }
Output for 5.3.0
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.494163" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99998600838532) }
Output for 5.2.17
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.028333" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985694691047) }
Output for 5.2.16
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.029353" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99986191884077) }
Output for 5.2.15
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.028535" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985796047959) }
Output for 5.2.14
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.038836" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99982196574375) }
Output for 5.2.13
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.021864" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99962924190875) }
Output for 5.2.12
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.028701" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99979232603152) }
Output for 5.2.11
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.030455" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99976514244111) }
Output for 5.2.10
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.038294" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99986925418854) }
Output for 5.2.9
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.015608" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9996792179027) }
Output for 5.2.8
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.028762" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99985908137636) }
Output for 5.2.7
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.023930" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9997907741357) }
Output for 5.2.6
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.015804" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99968319580008) }
Output for 5.2.5
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.023881" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99979034383611) }
Output for 5.2.4
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.026635" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99981202166227) }
Output for 5.2.3
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.038928" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990200641858) }
Output for 5.2.2
array(4) { ["for"]=> string(8) "0.000010" ["foreach"]=> string(8) "0.038064" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.999736927818) }
Output for 5.2.1
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.025872" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99980647836705) }
Output for 5.2.0
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.008386" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99965882921559) }
Output for 5.1.6
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.028345" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99971401655339) }
Output for 5.1.5
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.026237" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99976373516529) }
Output for 5.1.4
array(4) { ["for"]=> string(8) "0.000000" ["foreach"]=> string(8) "0.009556" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(1) }
Output for 5.1.3
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.026640" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99981205867349) }
Output for 5.1.2
array(4) { ["for"]=> string(8) "0.000009" ["foreach"]=> string(8) "0.012988" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9993024323084) }
Output for 5.1.1
array(4) { ["for"]=> string(8) "0.000156" ["foreach"]=> string(8) "0.011574" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.98652796374498) }
Output for 5.1.0
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.011852" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99933616302227) }
Output for 5.0.5
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.036610" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99986324029332) }
Output for 5.0.4
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.040339" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99989952362377) }
Output for 5.0.3
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.047212" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9998939506416) }
Output for 5.0.2
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.036660" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9997853853958) }
Output for 5.0.1
array(4) { ["for"]=> string(8) "0.000004" ["foreach"]=> string(8) "0.057745" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992981007432) }
Output for 5.0.0
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.040135" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99987525098314) }
Output for 4.4.9
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.080893" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99993818995463) }
Output for 4.4.8
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.093957" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99996807050033) }
Output for 4.4.7
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.091844" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99994555986238) }
Output for 4.4.6
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.060327" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99986738939447) }
Output for 4.4.5
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.144976" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99994481845271) }
Output for 4.4.4
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.083938" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99994043222378) }
Output for 4.4.3
array(4) { ["for"]=> string(8) "0.000009" ["foreach"]=> string(8) "0.160781" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99994402323658) }
Output for 4.4.2
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.065798" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992400984832) }
Output for 4.4.1
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.054559" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990835609157) }
Output for 4.4.0
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.061515" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99995123140697) }
Output for 4.3.11
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.075915" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99996048211816) }
Output for 4.3.10
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.101900" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99994111874387) }
Output for 4.3.9
array(4) { ["for"]=> string(8) "0.000006" ["foreach"]=> string(8) "0.151182" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99996031273564) }
Output for 4.3.8
array(4) { ["for"]=> string(8) "0.000007" ["foreach"]=> string(8) "0.098505" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992893761738) }
Output for 4.3.7
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.050931" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99990182796332) }
Output for 4.3.6
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.081767" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99993885063656) }
Output for 4.3.5
array(4) { ["for"]=> string(8) "0.000003" ["foreach"]=> string(8) "0.077139" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99996110916657) }
Output for 4.3.4
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.053683" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9999068606449) }
Output for 4.3.3
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.100584" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99992046448739) }
Output for 4.3.2
array(4) { ["for"]=> string(8) "0.000005" ["foreach"]=> string(8) "0.067914" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9999263774774) }
Output for 4.3.1
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.051817" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.99984561051392) }
Output for 4.3.0
array(4) { ["for"]=> string(8) "0.000008" ["foreach"]=> string(8) "0.050261" ["is 'for' faster than 'foreach'?"]=> bool(true) ["how much faster?"]=> float(0.9998408308629) }