3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = array(1,2,3,4,5); echo $data[-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.00.0040.00419.21
7.1.100.0040.01117.94
7.1.70.0030.01017.11
7.1.60.0120.00919.40
7.1.50.0070.01316.82
7.1.00.0000.07322.45
7.0.200.0060.00916.73
7.0.140.0000.08021.97
7.0.60.0070.05720.02
7.0.50.0100.04317.85
7.0.40.0030.05720.24
7.0.30.0070.05020.16
7.0.20.0300.07320.00
7.0.10.0070.04020.32
7.0.00.0130.06720.12
5.6.210.0030.05720.46
5.6.200.0000.04318.12
5.6.190.0100.08720.43
5.6.180.0370.06320.38
5.6.170.0270.08720.41
5.6.160.0030.04320.51
5.6.150.0070.05018.21
5.6.140.0070.08018.11
5.6.130.0000.06718.17
5.6.120.0000.05320.98
5.6.110.0130.04321.07
5.6.100.0130.08020.95
5.6.90.0170.07020.97
5.6.80.0070.07020.38
5.5.350.0370.04020.37
5.5.340.0070.04017.93
5.5.330.0030.06720.06
5.5.320.0030.04020.27
5.5.310.0370.06320.30
5.5.300.0100.05017.96
5.5.290.0100.07717.95
5.5.280.0070.06320.79
5.5.270.0070.07720.73
5.5.260.0100.07320.81
5.5.250.0070.07020.60
5.5.240.0000.08020.03
5.4.450.3300.03719.45
5.4.440.3900.04319.42
5.4.430.3930.03719.25
5.4.420.3700.03319.48
5.4.410.3870.04019.29
5.4.400.3800.04718.81
5.4.390.4100.04318.81
5.4.380.3670.03719.09
5.4.370.4200.04019.25
5.4.360.4170.04018.93
5.4.350.3930.03319.22
5.4.340.3570.03719.13
5.4.320.3600.03319.09
5.4.310.3930.03719.25
5.4.300.3870.03718.79
5.4.290.3670.03319.08
5.4.280.3800.03319.23
5.4.270.3770.03719.24
5.4.260.3730.03719.05
5.4.250.3630.03719.24
5.4.240.4030.05019.05
5.4.230.3930.03019.24
5.4.220.3800.04019.09
5.4.210.3900.03719.23
5.4.200.3800.04019.08
5.4.190.3830.04318.80
5.4.180.3830.04319.07
5.4.170.3900.03719.08
5.4.160.3800.04319.06
5.4.150.3870.04319.06
5.4.140.4170.03716.36
5.4.130.3600.03716.30
5.4.120.3830.03716.54
5.4.110.3830.04316.20
5.4.100.4030.03316.38
5.4.90.3370.03716.41
5.4.80.3600.02716.43
5.4.70.3930.03016.46
5.4.60.3630.03016.29
5.4.50.3270.03016.36
5.4.40.3100.03316.36
5.4.30.3800.03316.38
5.4.20.2530.03716.36
5.4.10.3530.03016.43
5.4.00.4030.03315.73
5.3.290.3630.04314.50
5.3.280.4300.03314.42
5.3.270.3830.04014.62
5.3.260.3930.03714.64
5.3.250.3830.04314.53
5.3.240.3870.03714.44
5.3.230.3630.04314.44
5.3.220.3730.03314.39
5.3.210.3430.04314.40
5.3.200.3570.04714.59
5.3.190.3500.03314.46
5.3.180.3100.03314.41
5.3.170.3630.04014.54
5.3.160.3430.04014.42
5.3.150.3630.04014.48
5.3.140.3630.02714.40
5.3.130.3500.04714.49
5.3.120.3700.03314.38
5.3.110.3430.03714.59
5.3.100.3770.03713.90
5.3.90.3600.05313.86
5.3.80.4100.03314.04
5.3.70.3770.04313.81
5.3.60.3630.04013.80
5.3.50.4000.03313.77
5.3.40.3870.03313.78
5.3.30.4800.04013.89
5.3.20.3770.03013.47
5.3.10.3930.03013.76
5.3.00.3800.03313.41
5.2.170.3570.04011.20
5.2.160.3200.02711.00
5.2.150.2800.02711.08
5.2.140.3170.03011.03
5.2.130.3270.03011.04
5.2.120.3500.03311.14
5.2.110.3070.03311.03
5.2.100.3270.02710.96
5.2.90.3730.03010.96
5.2.80.3170.03310.92
5.2.70.3400.03311.00
5.2.60.3100.04711.09
5.2.50.3000.03010.88
5.2.40.2730.02010.83
5.2.30.2470.02711.05
5.2.20.2600.02711.00
5.2.10.2330.03310.88
5.2.00.2530.02710.64
5.1.60.2700.02310.00
5.1.50.2300.0309.98
5.1.40.2630.0239.92
5.1.30.2730.02710.21
5.1.20.2700.03010.25
5.1.10.2600.02310.05
5.1.00.2770.02310.22
5.0.50.1470.0209.92
5.0.40.1330.0179.92
5.0.30.0800.0339.92
5.0.20.1570.0209.92
5.0.10.1430.0279.92
5.0.00.0800.0479.92
4.4.90.1230.0179.92
4.4.80.1430.0139.92
4.4.70.1330.0209.92
4.4.60.1370.0179.92
4.4.50.1300.0139.92
4.4.40.1170.0279.92
4.4.30.1400.0179.92
4.4.20.1200.0179.92
4.4.10.1370.0139.92
4.4.00.1600.0309.92
4.3.110.1530.0139.92
4.3.100.1630.0139.92
4.3.90.1500.0109.92
4.3.80.1270.0239.92
4.3.70.1370.0179.92
4.3.60.1600.0139.92
4.3.50.0500.0139.92
4.3.40.1300.0209.92
4.3.30.0600.0179.92
4.3.20.0630.0179.92
4.3.10.0600.0179.92
4.3.00.0600.0179.92