3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const NAME = static; } class Bar extends Foo {} echo Foo::NAME, "\n"; echo Bar::NAME, "\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)
5.4.350.0070.03313.89
5.4.340.0100.03313.78
5.4.320.0000.04714.20
5.4.310.0100.03714.20
5.4.300.0100.04014.27
5.4.290.0100.04314.41
5.4.280.0100.03714.21
5.4.270.0130.03714.37
5.4.260.0130.03714.28
5.4.250.0100.04314.38
5.4.240.0100.04014.15
5.4.230.0130.04314.14
5.4.220.0100.04314.09
5.4.210.0100.04314.17
5.4.200.0130.04014.13
5.4.190.0230.03314.17
5.4.180.0130.04014.15
5.4.170.0100.04014.15
5.4.160.0030.03714.15
5.4.150.0070.03714.15
5.4.140.0070.03713.82
5.4.130.0000.04013.93
5.4.120.0030.03714.00
5.4.110.0130.03013.83
5.4.100.0000.04013.83
5.4.90.0170.03713.93
5.4.80.0030.05013.80
5.4.70.0070.03713.76
5.4.60.0100.03713.80
5.4.50.0100.04013.80
5.4.40.0070.04013.69
5.4.30.0070.03713.84
5.4.20.0070.03713.73
5.4.10.0030.03713.91
5.4.00.0000.04313.27
5.3.290.0170.03714.67
5.3.280.0100.03714.73
5.3.270.0130.03314.52
5.3.260.0070.04714.73
5.3.250.0070.04014.74
5.3.240.0030.04314.54
5.3.230.0030.04014.51
5.3.220.0100.03714.74
5.3.210.0070.04314.52
5.3.200.0070.04014.55
5.3.190.0130.03714.53
5.3.180.0030.03714.74
5.3.170.0030.04014.55
5.3.160.0100.03714.50
5.3.150.0170.03014.70
5.3.140.0030.04014.48
5.3.130.0100.04014.61
5.3.120.0070.04014.51
5.3.110.0030.04314.68
5.3.100.0130.03314.23
5.3.90.0070.03714.04
5.3.80.0100.03713.96
5.3.70.0070.03714.16
5.3.60.0100.03713.95
5.3.50.0130.04013.94
5.3.40.0030.04313.93
5.3.30.0070.03713.88
5.3.20.0030.04013.84
5.3.10.0070.03313.72
5.3.00.0100.03313.59
5.2.170.0030.03711.18
5.2.160.0030.03011.20
5.2.150.0070.03011.21
5.2.140.0000.03711.05
5.2.130.0070.02711.09
5.2.120.0070.02711.07
5.2.110.0070.02711.07
5.2.100.0070.02711.03
5.2.90.0070.02711.09
5.2.80.0030.03311.01
5.2.70.0070.03011.09
5.2.60.0030.03711.02
5.2.50.0070.03311.16
5.2.40.0100.02711.03
5.2.30.0070.03011.03
5.2.20.0030.03311.13
5.2.10.0030.03010.84
5.2.00.0030.03310.71
5.1.60.0030.02310.03
5.1.50.0030.02710.18
5.1.40.0070.02310.11
5.1.30.0030.03010.26
5.1.20.0030.03010.49
5.1.10.0000.03010.03
5.1.00.0030.02710.04
5.0.50.0000.0238.72
5.0.40.0030.0208.49
5.0.30.0070.0278.30
5.0.20.0100.0138.20
5.0.10.0030.0208.18
5.0.00.0000.0338.17
4.4.90.0000.0235.83
4.4.80.0000.0205.87
4.4.70.0000.0175.85
4.4.60.0000.0205.79
4.4.50.0000.0205.84
4.4.40.0000.0305.85
4.4.30.0000.0175.82
4.4.20.0070.0175.99
4.4.10.0030.0175.89
4.4.00.0030.0305.97
4.3.110.0000.0175.84
4.3.100.0070.0105.84
4.3.90.0000.0175.73
4.3.80.0000.0275.73
4.3.70.0030.0135.74
4.3.60.0030.0135.76
4.3.50.0030.0175.72
4.3.40.0030.0305.68
4.3.30.0000.0204.48
4.3.20.0000.0174.50
4.3.10.0000.0174.44
4.3.00.0030.02028.21

preferences:
140.56 ms | 1394 KiB | 7 Q