3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = ['2014','2015','2016','2017','2018','2019','2020']; for($i = 0, $c = count($y); $i < $c; $i++) //var_dump($i,$y[$i]); echo $i\n; echo $y[$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.0100.08320.19
5.6.160.0070.08320.50
5.6.150.0100.03318.19
5.6.140.0030.04318.17
5.6.130.0130.06018.18
5.6.120.0030.04320.96
5.6.110.0030.07321.14
5.6.100.0130.04720.99
5.6.90.0100.08320.96
5.6.80.0100.06720.37
5.5.300.0070.07317.95
5.5.290.0030.08317.98
5.5.280.0030.04320.97
5.5.270.0070.04020.89
5.5.260.0130.05320.76
5.5.250.0030.08720.68
5.5.240.0200.07320.35

preferences:
129.41 ms | 1398 KiB | 7 Q