3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const ALPHA = 1, BETA = 2, GAMMA = 3; public $a = "apple", $b = "bread", $c = "candy"; } echo ($t = new Test)::BETA ;         // 2

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.310.4030.03318.87
5.4.300.3700.03019.32
5.4.290.3630.03319.22
5.4.280.3670.04019.21
5.4.270.3970.03719.08
5.4.260.4030.03319.16
5.4.250.4130.03719.19
5.4.240.3930.03719.23
5.4.230.3900.04719.19
5.4.220.3970.04318.87
5.4.210.3200.04019.05
5.4.200.3900.03719.05
5.4.190.4500.04319.12
5.4.180.3270.03319.08
5.4.170.3370.04018.84
5.4.160.3600.03319.06
5.4.150.3870.03718.83
5.4.140.3330.03716.52
5.4.130.3330.03316.36
5.4.120.3170.03316.56
5.4.110.4070.03316.44
5.4.100.3470.03316.61
5.4.90.3430.03316.46
5.4.80.4000.02716.49
5.4.70.3900.03716.41
5.4.60.3870.03716.52
5.4.50.3730.04016.52
5.4.40.3700.03316.13
5.4.30.3770.03316.16
5.4.20.4500.04016.52
5.4.10.4570.04016.15
5.4.00.4700.03715.88
5.3.280.4170.02714.52
5.3.270.3470.04014.52
5.3.260.3870.03314.71
5.3.250.3800.03714.71
5.3.240.3700.03014.68
5.3.230.3600.04014.64
5.3.220.3900.04014.61
5.3.210.4230.04714.48
5.3.200.3730.03314.57
5.3.190.3930.03314.68
5.3.180.3870.03714.46
5.3.170.3870.03714.47
5.3.160.3770.03714.47
5.3.150.3630.04014.71
5.3.140.3730.03314.64
5.3.130.3800.03314.59
5.3.120.3670.04314.70
5.3.110.4670.03314.66
5.3.100.4330.04014.19
5.3.90.3330.04014.26
5.3.80.3730.03714.02
5.3.70.4030.03713.91
5.3.60.3930.02714.16
5.3.50.3770.03313.94
5.3.40.3100.03714.02
5.3.30.2730.03013.80
5.3.20.2200.04013.77
5.3.10.3230.03313.79
5.3.00.3000.03313.56
5.2.170.3170.03011.05
5.2.160.1670.03311.10
5.2.150.2130.03011.20
5.2.140.2230.03011.22
5.2.130.1730.03011.15
5.2.120.2470.02711.02
5.2.110.2070.03011.00
5.2.100.3100.03011.08
5.2.90.3500.03311.01
5.2.80.3070.03011.25
5.2.70.3100.03011.00
5.2.60.3200.03011.20
5.2.50.3630.03011.23
5.2.40.3070.02710.99
5.2.30.3300.02710.92
5.2.20.3330.02710.96
5.2.10.3170.02710.77
5.2.00.2930.02710.61
5.1.60.2430.0209.85
5.1.50.2430.0279.98
5.1.40.2430.02710.03
5.1.30.2470.02310.23
5.1.20.2530.01710.59
5.1.10.2570.03010.05
5.1.00.2530.02310.05
5.0.50.1370.0239.57
5.0.40.1370.0209.57
5.0.30.1430.0339.57
5.0.20.1530.0239.57
5.0.10.1170.0279.57
5.0.00.1700.0339.57
4.4.90.1270.0139.57
4.4.80.0900.0209.57
4.4.70.1570.0109.57
4.4.60.1470.0139.57
4.4.50.1830.0139.57
4.4.40.1530.0279.57
4.4.30.1270.0139.57
4.4.20.1270.0139.57
4.4.10.1230.0139.57
4.4.00.1370.0309.57
4.3.110.1330.0209.57
4.3.100.1430.0179.57
4.3.90.1470.0179.57
4.3.80.1400.0279.57
4.3.70.1400.0179.57
4.3.60.1470.0209.57
4.3.50.1470.0179.57
4.3.40.1430.0209.57
4.3.30.0730.0239.57
4.3.20.0700.0209.57
4.3.10.0800.0179.57
4.3.00.0770.0239.57

preferences:
140.05 ms | 1386 KiB | 7 Q