3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class a { function a() { echo "CONSTRUCTOR CALLED\r\n"; } function b($var) { return $var . 'x'; } } echo a::a()

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.0030.05718.80
5.4.260.0100.06718.95
5.4.250.0130.07018.99
5.4.240.0000.06318.94
5.4.230.0070.05318.85
5.4.220.0130.07318.94
5.4.210.0130.04718.96
5.4.200.0130.04718.80
5.4.190.0100.05018.94
5.4.180.0100.07018.95
5.4.170.0130.04718.95
5.4.160.0030.06319.09
5.4.150.0170.07318.89
5.4.140.0170.06316.42
5.4.130.0200.04016.28
5.4.120.0100.05316.37
5.4.110.0070.08016.49
5.4.100.0130.06016.41
5.4.90.0070.04716.50
5.4.80.0130.06016.48
5.4.70.0070.07016.48
5.4.60.0100.06016.63
5.4.50.0030.05316.38
5.4.40.0030.05316.39
5.4.30.0130.04316.38
5.4.20.0100.06316.62
5.4.10.0100.04716.46
5.4.00.0100.06015.82
5.3.280.0130.06714.67
5.3.270.0070.05314.83
5.3.260.0070.06014.67
5.3.250.0070.05014.71
5.3.240.0100.06014.62
5.3.230.0130.06314.43
5.3.220.0030.05714.66
5.3.210.0030.06014.65
5.3.200.0070.05014.63
5.3.190.0070.05314.48
5.3.180.0070.05314.75
5.3.170.0070.05014.47
5.3.160.0100.05014.70
5.3.150.0200.05314.55
5.3.140.0030.07314.55
5.3.130.0070.05714.46
5.3.120.0100.05014.62
5.3.110.0200.04014.54
5.3.100.0130.04714.04
5.3.90.0070.06013.85
5.3.80.0000.05314.01
5.3.70.0030.05314.01
5.3.60.0100.05314.23
5.3.50.0100.05713.78
5.3.40.0070.07313.78
5.3.30.0100.06013.74
5.3.20.0100.05713.78
5.3.10.0100.04713.83
5.3.00.0100.06713.73
5.2.170.0030.04311.22
5.2.160.0070.03711.12
5.2.150.0100.03711.31
5.2.140.0170.05011.13
5.2.130.0000.04311.01
5.2.120.0070.05011.19
5.2.110.0030.05311.16
5.2.100.0000.05011.05
5.2.90.0030.04311.18
5.2.80.0100.03711.06
5.2.70.0000.06011.26
5.2.60.0030.06011.06
5.2.50.0100.05711.19
5.2.40.0070.04011.07
5.2.30.0030.04310.97
5.2.20.0030.05311.02
5.2.10.0100.05310.95
5.2.00.0100.05010.55
5.1.60.0000.05310.07
5.1.50.0030.0339.84
5.1.40.0000.05010.02
5.1.30.0030.05010.43
5.1.20.0100.03310.44
5.1.10.0000.03710.04
5.1.00.0130.04710.14
5.0.50.0130.0208.61
5.0.40.0070.0338.33
5.0.30.0100.0478.23
5.0.20.0000.0308.39
5.0.10.0000.0308.37
5.0.00.0100.0338.08
4.4.90.0030.0206.41
4.4.80.0000.0336.41
4.4.70.0000.0336.41
4.4.60.0070.0276.41
4.4.50.0030.0276.41
4.4.40.0070.0406.41
4.4.30.0000.0236.41
4.4.20.0030.0236.41
4.4.10.0130.0136.41
4.4.00.0030.0436.41
4.3.110.0030.0206.41
4.3.100.0100.0236.41
4.3.90.0070.0276.41
4.3.80.0070.0376.41
4.3.70.0030.0206.41
4.3.60.0100.0136.41
4.3.50.0030.0306.41
4.3.40.0070.0306.40
4.3.30.0000.0306.40
4.3.20.0100.0236.40
4.3.10.0030.0276.41
4.3.00.0100.0206.99

preferences:
133.53 ms | 1394 KiB | 7 Q