3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const FOO = ''; function go() { call_user_func(function () { echo self::FOO; echo 'PASS'; }); }; } $foo = new Foo; $foo->go();

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.270.0130.05718.99
5.4.260.0270.06018.93
5.4.250.0130.07318.93
5.4.240.0230.05319.10
5.4.230.0130.07318.93
5.4.220.0200.08018.96
5.4.210.0070.06018.94
5.4.200.0200.04018.96
5.4.190.0170.07318.96
5.4.180.0230.05318.65
5.4.170.0100.05318.84
5.4.160.0100.07018.64
5.4.150.0070.06018.75
5.4.140.0100.07316.44
5.4.130.0070.05016.52
5.4.120.0070.05716.60
5.4.110.0030.08016.71
5.4.100.0070.06716.54
5.4.90.0130.06716.54
5.4.80.0200.07316.56
5.4.70.0130.06716.49
5.4.60.0130.05016.46
5.4.50.0100.07016.48
5.4.40.0130.07016.44
5.4.30.0100.06716.39
5.4.20.0130.06716.38
5.4.10.0170.06716.49
5.4.00.0170.05316.03
5.3.280.0100.06314.57
5.3.270.0130.05314.70
5.3.260.0170.07314.70
5.3.250.0170.07014.70
5.3.240.0130.07014.75
5.3.230.0130.04314.63
5.3.220.0000.06014.66
5.3.210.0200.04314.55
5.3.200.0070.05714.55
5.3.190.0070.05014.68
5.3.180.0130.07014.66
5.3.170.0070.06014.48
5.3.160.0100.05014.66
5.3.150.0130.05714.75
5.3.140.0170.05714.55
5.3.130.0300.05314.62
5.3.120.0030.06014.64
5.3.110.0170.06714.64
5.3.100.0030.05714.13
5.3.90.0100.06714.21
5.3.80.0170.05714.18
5.3.70.0200.06014.18
5.3.60.0100.06314.02
5.3.50.0270.04013.86
5.3.40.0070.06713.93
5.3.30.0130.04313.74
5.3.20.0000.05313.79
5.3.10.0070.05013.82
5.3.00.0070.05013.72
5.2.170.0030.05311.10
5.2.160.0170.04311.36
5.2.150.0000.06011.22
5.2.140.0100.05711.05
5.2.130.0130.03711.07
5.2.120.0100.04011.09
5.2.110.0130.03711.27
5.2.100.0200.02711.05
5.2.90.0000.05011.05
5.2.80.0030.05311.07
5.2.70.0130.04011.18
5.2.60.0070.05710.88
5.2.50.0130.04011.02
5.2.40.0070.04011.06
5.2.30.0100.05010.94
5.2.20.0130.04711.18
5.2.10.0170.04011.02
5.2.00.0200.04710.57
5.1.60.0170.03310.07
5.1.50.0030.0379.98
5.1.40.0100.0339.98
5.1.30.0000.05310.16
5.1.20.0100.03710.34
5.1.10.0030.03710.13
5.1.00.0070.03710.03
5.0.50.0000.0338.59
5.0.40.0070.0238.47
5.0.30.0100.0508.31
5.0.20.0070.0238.17
5.0.10.0030.0308.14
5.0.00.0030.0408.19
4.4.90.0100.0177.47
4.4.80.0000.0337.47
4.4.70.0030.0277.47
4.4.60.0030.0207.47
4.4.50.0100.0177.47
4.4.40.0030.0407.47
4.4.30.0030.0307.47
4.4.20.0030.0237.47
4.4.10.0070.0207.47
4.4.00.0000.0337.47
4.3.110.0130.0177.47
4.3.100.0030.0207.47
4.3.90.0070.0177.47
4.3.80.0070.0337.47
4.3.70.0000.0277.47
4.3.60.0000.0237.47
4.3.50.0070.0177.47
4.3.40.0070.0277.47
4.3.30.0070.0277.47
4.3.20.0000.0237.47
4.3.10.0070.0237.47
4.3.00.0000.0236.88

preferences:
146.79 ms | 1394 KiB | 7 Q