3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 2 ,3); array_walk($a, function(&$i, $k, $pos) { $i++; }) var_dump($a);

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.10.0070.04320.30
7.0.00.0030.05720.20
5.6.160.0100.07020.55
5.6.150.0070.07718.17
5.6.140.0070.08718.19
5.6.130.0100.06318.29
5.6.120.0000.05721.00
5.6.110.0070.05021.14
5.6.100.0030.04320.98
5.6.90.0000.06320.98
5.6.80.0030.04020.30
5.5.300.0070.07318.04
5.5.290.0070.08318.09
5.5.280.0130.07720.80
5.5.270.0030.04020.79
5.5.260.0070.08720.80
5.5.250.0030.05320.59
5.5.240.0130.04020.13

preferences:
140.26 ms | 1394 KiB | 7 Q