3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $bar = 'foo'; function foo() { return $bar; } echo foo();

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.3770.04319.12
5.4.260.3400.04019.18
5.4.250.3900.03719.21
5.4.240.3600.03319.12
5.4.230.3670.03718.94
5.4.220.3970.03719.21
5.4.210.3830.04019.12
5.4.200.3870.04019.14
5.4.190.3900.03019.20
5.4.180.3630.04018.94
5.4.170.3900.04018.98
5.4.160.4030.03719.13
5.4.150.3530.04019.08
5.4.140.4600.03016.49
5.4.130.3700.04016.44
5.4.120.3630.03716.45
5.4.110.4370.04016.36
5.4.100.4300.03316.55
5.4.90.3900.03716.45
5.4.80.3730.03016.50
5.4.70.3770.04016.51
5.4.60.3470.04016.34
5.4.50.4030.03016.61
5.4.40.3670.04016.61
5.4.30.4570.03316.41
5.4.20.3800.02716.50
5.4.10.4270.03716.19
5.4.00.3830.03715.90
5.3.280.3930.04014.52
5.3.270.3830.03714.53
5.3.260.3870.03314.53
5.3.250.3800.03714.51
5.3.240.4400.03714.53
5.3.230.3600.03314.52
5.3.220.5170.03314.39
5.3.210.3770.04014.54
5.3.200.4330.03314.53
5.3.190.3470.04314.45
5.3.180.3970.03314.53
5.3.170.3900.04014.50
5.3.160.3370.04014.49
5.3.150.4770.02714.38
5.3.140.3770.03314.53
5.3.130.4170.03714.47
5.3.120.4270.03714.34
5.3.110.4630.04014.53
5.3.100.3900.03713.99
5.3.90.4600.03313.96
5.3.80.3770.03313.95
5.3.70.4600.03713.83
5.3.60.4470.03013.80
5.3.50.4430.04013.79
5.3.40.4470.03314.03
5.3.30.3930.03313.84
5.3.20.3530.04313.61
5.3.10.4030.03013.67
5.3.00.4100.03313.65
5.2.170.3430.02311.15
5.2.160.3730.02011.11
5.2.150.3570.03010.97
5.2.140.3530.03011.22
5.2.130.3430.02311.07
5.2.120.3070.03011.10
5.2.110.3330.02311.02
5.2.100.4070.04311.04
5.2.90.3670.03011.18
5.2.80.3330.02311.17
5.2.70.3530.03010.97
5.2.60.3000.03310.92
5.2.50.2730.02711.03
5.2.40.2200.03010.99
5.2.30.2200.03011.14
5.2.20.2330.02711.11
5.2.10.2130.03011.03
5.2.00.2130.03010.76
5.1.60.2370.02310.07
5.1.50.1970.0279.96
5.1.40.1570.0279.95
5.1.30.2800.03010.34
5.1.20.2430.03010.35
5.1.10.2400.03010.06
5.1.00.2270.02010.02
5.0.50.1300.0178.39
5.0.40.0700.0178.46
5.0.30.0900.0338.24
5.0.20.1070.0208.16
5.0.10.1200.0178.18
5.0.00.0730.0278.12
4.4.90.1270.0136.38
4.4.80.1200.0176.38
4.4.70.1300.0176.38
4.4.60.1130.0176.38
4.4.50.1400.0136.38
4.4.40.1170.0276.38
4.4.30.0930.0176.38
4.4.20.1070.0136.38
4.4.10.0970.0136.38
4.4.00.0930.0236.38
4.3.110.1170.0176.38
4.3.100.0900.0136.38
4.3.90.1170.0176.38
4.3.80.1200.0236.38
4.3.70.1430.0136.38
4.3.60.1170.0136.38
4.3.50.1470.0206.38
4.3.40.1530.0236.38
4.3.30.0770.0206.38
4.3.20.0970.0206.38
4.3.10.0730.0176.38
4.3.00.0730.0176.38

preferences:
159.69 ms | 1386 KiB | 7 Q