3v4l.org

run code in 300+ PHP versions simultaneously
<?php @function foo() { echo "bar"; }

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.340.1700.03319.16
5.4.320.2100.05019.09
5.4.310.1830.04319.09
5.4.300.2130.04318.99
5.4.290.0330.03719.18
5.4.280.0070.05719.16
5.4.270.0200.03719.16
5.4.260.1730.03719.31
5.4.250.1670.03719.21
5.4.240.1870.03319.15
5.4.230.1570.03319.19
5.4.220.0100.03319.23
5.4.210.0070.05019.12
5.4.200.0400.03319.08
5.4.190.1100.03319.24
5.4.180.1630.03018.86
5.4.170.1970.03718.81
5.4.160.1770.03319.17
5.4.150.1700.03718.92
5.4.140.1700.03716.31
5.4.130.1730.03716.31
5.4.120.1970.04316.32
5.4.110.1670.03716.55
5.4.100.1670.03016.36
5.4.90.1370.03316.28
5.4.80.1370.03316.43
5.4.70.1830.03716.52
5.4.60.1600.03716.48
5.4.50.1530.03016.50
5.4.40.1570.03316.52
5.4.30.1570.03316.32
5.4.20.1630.03016.52
5.4.10.1670.02716.52
5.4.00.1770.03715.94
5.3.290.1670.04014.57
5.3.280.1830.04014.44
5.3.270.1930.04014.55
5.3.260.1600.04314.45
5.3.250.1930.04714.59
5.3.240.1870.04314.55
5.3.230.2000.04014.55
5.3.220.1670.03714.43
5.3.210.2030.04314.41
5.3.200.2030.04314.42
5.3.190.1130.04714.55
5.3.180.0000.04714.51
5.3.170.0030.03714.55
5.3.160.0070.03714.47
5.3.150.1600.03314.47
5.3.140.1870.03314.50
5.3.130.1700.04014.40
5.3.120.1770.03314.60
5.3.110.1830.04314.38
5.3.100.1800.04013.90
5.3.90.1830.03713.89
5.3.80.1830.03713.96
5.3.70.1700.04313.95
5.3.60.1870.03313.90
5.3.50.2100.04313.89
5.3.40.2100.04013.79
5.3.30.1870.03013.86
5.3.20.1870.03313.70
5.3.10.1800.03313.52
5.3.00.1800.04013.51
5.2.170.1870.03310.98
5.2.160.1770.02311.30
5.2.150.1730.02711.21
5.2.140.1630.03311.19
5.2.130.1670.03011.01
5.2.120.1700.03011.04
5.2.110.1830.01711.15
5.2.100.1630.03311.15
5.2.90.1700.03311.17
5.2.80.1770.02311.17
5.2.70.1700.03011.00
5.2.60.1570.02311.13
5.2.50.1170.02710.86
5.2.40.1370.04310.82
5.2.30.1170.03010.80
5.2.20.1330.03310.80
5.2.10.1230.02710.78
5.2.00.1300.03710.63
5.1.60.1170.0239.89
5.1.50.1370.02710.07
5.1.40.1470.0309.95
5.1.30.1400.03310.23
5.1.20.1400.03010.37
5.1.10.1430.03310.07
5.1.00.1400.02710.04
5.0.50.0830.0278.58
5.0.40.0670.0308.27
5.0.30.0630.0478.38
5.0.20.0030.0438.18
5.0.10.0030.0278.18
5.0.00.0030.0508.18
4.4.90.0000.0338.18
4.4.80.0030.0308.18
4.4.70.0070.0378.18
4.4.60.0070.0278.18
4.4.50.0000.0238.18
4.4.40.0000.0538.18
4.4.30.0000.0178.18
4.4.20.0330.0208.18
4.4.10.0730.0238.18
4.4.00.0770.0208.18
4.3.110.0770.0208.18
4.3.100.0630.0138.18
4.3.90.0570.0178.18
4.3.80.0730.0408.18
4.3.70.0600.0138.18
4.3.60.0830.0138.18
4.3.50.0630.0138.18
4.3.40.0700.0238.18
4.3.30.0430.0238.18
4.3.20.0370.0278.18
4.3.10.0270.0178.18
4.3.00.0330.0208.18

preferences:
144.51 ms | 1394 KiB | 7 Q