3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $values = array( 'foo', 'bar', 'baz' ); $newarray = array(); foreach($values as $k => $v) { $newarray[$k] = $v; if($k == 'bar') $newarray = kon; } echo implode(' ', $newarray);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.20.0370.08320.09
7.0.10.0070.04320.24
7.0.00.0070.08720.20
5.6.170.0230.03720.60
5.6.160.0200.05720.44
5.6.150.0030.07318.18
5.6.140.0030.08018.28
5.6.130.0070.08018.29
5.6.120.0030.04320.99
5.6.110.0070.08720.97
5.6.100.0070.08321.12
5.6.90.0030.09020.96
5.6.80.0030.08320.39
5.5.310.0300.04720.50
5.5.300.0030.07017.97
5.5.290.0200.05018.08
5.5.280.0100.05320.89
5.5.270.0000.09020.63
5.5.260.0130.07320.82
5.5.250.0030.08720.57
5.5.240.3400.04720.18

preferences:
141.62 ms | 1394 KiB | 7 Q