3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0;$i<10000;$i++) { echo mt_rand(1, mt_getrandmax())."\n"; }

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.2.100.0240.01514.59
7.2.90.1320.01814.54
7.2.80.0210.01114.61
7.2.70.1190.01014.98
7.2.60.1010.00714.98
7.2.50.1220.00714.79
7.2.40.1580.01014.95
7.1.220.0640.01813.68
7.1.210.1380.00913.81
7.1.200.0880.01413.92
7.1.190.1310.00313.91
7.1.180.0590.01713.74
7.1.170.0280.01213.81
7.0.310.0310.01813.52
7.0.300.1270.01013.47
5.6.380.0140.01414.14
5.6.370.0090.01814.10
5.6.360.0130.00614.02

preferences:
32.04 ms | 400 KiB | 5 Q