3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = '{"bar":"baz"}'; echo $foo[-1];

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.1020.01014.72
7.2.00.0000.01219.42
7.1.200.0200.00615.95
7.1.100.0040.01117.96
7.1.70.0000.01316.89
7.1.60.0150.00919.25
7.1.50.0120.00616.81
7.1.00.0030.03322.54
7.0.200.0030.00316.53
7.0.140.0070.07021.91
7.0.120.0070.06022.09
7.0.60.0330.05719.89
7.0.50.0030.04017.88
7.0.40.0000.04317.76
7.0.30.0000.04717.79
7.0.20.0030.04017.69
7.0.10.0000.04017.80
7.0.00.0070.03717.68
5.6.280.0070.07020.85
5.6.210.0130.06720.76
5.6.200.0030.04018.26
5.6.190.0130.03018.20
5.6.180.0070.04018.16
5.6.170.0000.04318.12
5.6.160.0100.03018.16
5.6.150.0070.03318.21
5.6.140.0030.03718.07
5.6.130.0000.04318.14
5.6.120.0030.04018.12
5.6.110.0030.04018.16
5.6.100.0000.04318.18
5.6.90.0030.04318.10
5.6.80.0100.07717.50
5.6.70.0100.06017.49
5.6.60.0130.07017.50
5.6.50.0100.07717.50
5.6.40.0130.06317.44
5.6.30.0100.07317.48
5.6.20.0070.07717.57
5.6.10.0000.08717.50
5.6.00.0000.07317.51
5.5.350.0200.06720.37
5.5.340.0000.04317.91
5.5.330.0030.04017.95
5.5.320.0030.04717.92
5.5.310.0100.03017.96
5.5.300.0030.03717.93
5.5.290.0070.03717.95
5.5.280.0030.04017.94
5.5.270.0000.04318.00
5.5.260.0000.04317.88
5.5.250.0030.05317.70
5.5.240.0030.07717.34
5.5.230.0070.06717.39
5.5.220.0070.07717.36
5.5.210.0030.08017.29
5.5.200.0030.08017.37
5.5.190.0030.07017.23
5.5.180.0170.06717.24
5.5.160.0070.07717.30
5.5.150.0030.04017.36
5.5.140.0030.03717.37
5.5.130.0170.06317.24
5.5.120.0130.07017.32
5.5.110.0170.04017.22
5.5.100.0030.08317.25
5.5.90.0130.06317.26
5.5.80.0230.06017.27
5.5.70.0030.07717.15
5.5.60.0130.04717.23
5.5.50.0070.06017.16
5.5.40.0130.06717.11
5.5.30.0000.08317.21
5.5.20.0030.04017.11
5.5.10.0070.07717.15
5.5.00.0070.08017.21
5.4.450.0070.03719.37
5.4.440.0070.03719.32
5.4.430.0000.04019.31
5.4.420.0000.04019.53
5.4.410.0100.07319.21
5.4.400.0200.05718.99
5.4.390.0000.05018.98
5.4.380.0030.07319.13
5.4.370.0130.07718.98
5.4.360.0030.05318.97
5.4.350.0030.04319.01
5.4.340.0000.08318.95
5.4.320.0030.08319.01
5.4.310.0070.05019.14
5.4.300.0100.07318.82
5.4.290.0070.06719.14
5.4.280.0100.05019.11
5.4.270.0070.07719.14
5.4.260.0170.06718.90
5.4.250.0070.05018.95
5.4.240.0070.08019.11
5.4.230.0070.07018.98
5.4.220.0200.06718.98
5.4.210.0070.07318.98
5.4.200.0170.05318.95
5.4.190.0070.04018.98
5.4.180.0030.03718.98
5.4.170.0170.07019.11
5.4.160.0070.07719.02
5.4.150.0070.07719.19
5.4.140.0070.04016.20
5.4.130.0000.05016.36
5.4.120.0070.04316.29
5.4.110.0130.06716.41
5.4.100.0000.08016.29
5.4.90.0030.07316.41
5.4.80.0070.07316.32
5.4.70.0100.06716.26
5.4.60.0000.07716.27
5.4.50.0130.07016.28
5.4.40.0070.05016.28
5.4.30.0070.07016.20
5.4.20.0170.06716.22
5.4.10.0030.07016.22
5.4.00.0030.07715.62
5.3.290.0030.08314.58
5.3.280.0130.07314.67
5.3.270.0100.04014.59
5.3.260.0070.05014.68
5.3.250.0030.06314.37
5.3.240.0100.07314.45
5.3.230.0070.03314.55
5.3.220.0030.03714.55
5.3.210.0200.06014.52
5.3.200.0070.06714.50
5.3.190.0100.07014.55
5.3.180.0070.07014.53
5.3.170.0170.06714.49
5.3.160.0030.08014.48
5.3.150.0000.05014.52
5.3.140.0070.07314.52
5.3.130.0100.05014.37
5.3.120.0100.04714.36
5.3.110.0170.06314.46
5.3.100.0070.07313.82
5.3.90.0070.04313.93
5.3.80.0030.06713.79
5.3.70.0100.07013.98
5.3.60.0030.06013.94
5.3.50.0070.08013.87
5.3.40.0030.03713.91
5.3.30.0030.04713.66
5.3.20.0030.07713.64
5.3.10.0030.08013.59
5.3.00.0100.05713.57
5.2.170.0030.05311.04
5.2.160.0000.06711.14
5.2.150.0030.03010.98
5.2.140.0030.05711.11
5.2.130.0030.04010.93
5.2.120.0030.05711.10
5.2.110.0000.06311.07
5.2.100.0100.05711.10
5.2.90.0100.05311.02
5.2.80.0100.06011.12
5.2.70.0030.06711.04
5.2.60.0100.06011.01
5.2.50.0130.05711.04
5.2.40.0100.05310.98
5.2.30.0070.06010.75
5.2.20.0070.06010.96
5.2.10.0030.05710.89
5.2.00.0030.03710.67
5.1.60.0030.0579.90
5.1.50.0070.0379.90
5.1.40.0030.0309.95
5.1.30.0030.05310.47
5.1.20.0030.03010.29
5.1.10.0030.05710.12
5.1.00.0030.0509.89
5.0.50.0100.0408.56
5.0.40.0030.0378.39
5.0.30.0030.0538.39
5.0.20.0000.0308.39
5.0.10.0030.0278.39
5.0.00.0070.0478.39
4.4.90.0000.0338.39
4.4.80.0030.0338.39
4.4.70.0030.0408.39
4.4.60.0030.0178.39
4.4.50.0000.0378.39
4.4.40.0070.0578.39
4.4.30.0070.0138.39
4.4.20.0070.0338.39
4.4.10.0000.0378.39
4.4.00.0000.0408.39
4.3.110.0000.0238.39
4.3.100.0070.0278.39
4.3.90.0000.0238.39
4.3.80.0000.0338.39
4.3.70.0000.0338.39
4.3.60.0030.0178.39
4.3.50.0030.0238.39
4.3.40.0030.0508.39
4.3.30.0030.0208.39
4.3.20.0030.0238.39
4.3.10.0000.0208.39
4.3.00.0030.0238.39