3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! for ($i=0; $i< 1000000 ; $i++) { define('TEST'.$i,$i*12); if(i$ == 10000) { $i = 0; } } echo TEST456;

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)
5.4.170.0100.04019.16
5.4.160.0030.04019.10
5.4.150.0100.07718.91
5.4.140.0030.08016.50
5.4.130.0070.05716.41
5.4.120.0030.03716.38
5.4.110.0070.07016.67
5.4.100.0000.07016.45
5.4.90.0100.04016.67
5.4.80.0070.04316.26
5.4.70.0200.06016.45
5.4.60.0030.07316.41
5.4.50.0030.04016.36
5.4.40.0070.03316.30
5.4.30.0100.03016.39
5.4.20.0130.06716.50
5.4.10.0070.04316.38
5.4.00.0100.05715.82
5.3.270.0100.07714.70
5.3.260.0070.05014.55
5.3.250.0070.04714.55
5.3.240.0000.05014.54
5.3.230.0070.03314.63
5.3.220.0070.04314.51
5.3.210.0000.04014.55
5.3.200.0000.06014.50
5.3.190.0070.04014.53
5.3.180.0170.07014.44
5.3.170.0030.07714.48
5.3.160.0070.07014.66
5.3.150.0070.06714.52
5.3.140.0100.07714.50
5.3.130.0030.06314.52
5.3.120.0030.06714.34
5.3.110.0130.07014.37
5.3.100.0030.05013.86
5.3.90.0070.07713.96
5.3.80.0000.06013.84
5.3.70.0100.07313.94
5.3.60.0030.07013.80
5.3.50.0070.05713.87
5.3.40.0030.04313.96
5.3.30.0170.04313.83
5.3.20.0100.05713.48
5.3.10.0070.07313.62
5.3.00.0170.06313.46

preferences:
142.25 ms | 1386 KiB | 7 Q