3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = Array('bacon' => 0); Array_push($a, 'fish' => 3); foreach($a as $i) { echo $i; } ?>

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.00.0000.07320.12
5.6.160.0100.03320.55
5.6.150.0100.05718.16
5.6.140.0130.07318.15
5.6.130.0030.06718.24
5.6.120.0070.04321.02
5.6.110.0170.07320.98
5.6.100.0070.04020.97
5.6.90.0130.07321.09
5.6.80.0070.06320.50
5.5.300.0170.02717.98
5.5.290.0100.08317.95
5.5.280.0170.08020.68
5.5.270.0100.05320.95
5.5.260.0200.07020.63
5.5.250.0270.05020.68
5.5.240.0130.08320.26

preferences:
133.29 ms | 1398 KiB | 7 Q