3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tab = []; echo($tab[null]);

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.0000.01419.46
7.1.100.0060.00618.24
7.1.70.0000.00816.82
7.1.60.0100.01319.59
7.1.50.0070.01716.89
7.1.00.0030.07722.41
7.0.200.0000.00716.88
7.0.60.0100.06319.95
7.0.50.0100.07717.90
7.0.40.0000.04720.21
7.0.30.0200.03720.09
7.0.20.0370.07020.13
7.0.10.0030.08720.15
7.0.00.0070.07020.16
5.6.280.0030.04021.09
5.6.210.0130.06720.46
5.6.200.0000.07318.22
5.6.190.0070.04020.32
5.6.180.4130.03320.49
5.6.170.0270.06320.48
5.6.160.0070.03720.44
5.6.150.0070.05718.21
5.6.140.0130.07718.14
5.6.130.0030.04318.15
5.6.120.0000.06021.13
5.6.110.0130.07721.02
5.6.100.0070.08321.02
5.6.90.0100.03721.07
5.6.80.0070.05720.33
5.6.70.0200.07720.49
5.5.350.0330.06720.39
5.5.340.0030.08017.88
5.5.330.0100.04320.39
5.5.320.0270.06320.27
5.5.310.0330.04320.24
5.5.300.0130.07018.02
5.5.290.0070.06717.92
5.5.280.0070.06020.73
5.5.270.0100.06720.60
5.5.260.0070.04020.95
5.5.250.0130.07720.69
5.5.240.0270.06020.25
5.4.450.0930.04719.22
5.4.440.0900.06319.22
5.4.430.0930.06719.43
5.4.420.0930.05319.22
5.4.410.0870.04719.44
5.4.400.0500.06019.07
5.4.390.0730.05019.17
5.4.380.0770.05018.90
5.4.370.0600.05319.09
5.4.360.0630.07019.27
5.4.350.0700.05318.98
5.4.340.0870.05019.12
5.4.320.0900.05318.78
5.4.310.0970.05019.14
5.4.300.0870.05719.14
5.4.290.0870.05019.27
5.4.280.0870.06019.21
5.4.270.0800.05718.95
5.4.260.1170.05319.14
5.4.250.1000.05019.11
5.4.240.0800.05719.11
5.4.230.1000.06719.17
5.4.220.1000.05019.27
5.4.210.1030.05319.05
5.4.200.0730.05316.65
5.4.190.0870.06019.03
5.4.180.1100.05318.86
5.4.170.0870.05319.04
5.4.160.0930.05719.05
5.4.150.0870.05319.07
5.4.140.0770.06016.47
5.4.130.0800.05016.27
5.4.120.0900.04016.32
5.4.110.0930.06016.32
5.4.100.0830.05716.50
5.4.90.0830.05316.31
5.4.80.0770.05316.23
5.4.70.1000.04316.26
5.4.60.1030.04316.23
5.4.50.0730.05316.43
5.4.40.1030.05016.40
5.4.30.0930.05316.57
5.4.20.0800.06316.14
5.4.10.1130.05016.45
5.4.00.0900.04715.67
5.3.290.1000.05714.55
5.3.280.0900.05014.57
5.3.270.0900.06314.46
5.3.260.0700.05714.46
5.3.250.0770.05314.56
5.3.240.0770.05314.48
5.3.230.0970.04314.39
5.3.220.0730.07014.36
5.3.210.0900.06314.55
5.3.200.0870.05314.52
5.3.190.0830.06014.58
5.3.180.0870.05314.66
5.3.170.0770.06014.45
5.3.160.1130.05314.44
5.3.150.0730.05714.51
5.3.140.0870.04314.54
5.3.130.0730.06714.42
5.3.120.0730.05314.43
5.3.110.0770.05014.53
5.3.100.0630.05713.89
5.3.90.0700.05313.89
5.3.80.0730.05013.86
5.3.70.0170.04313.86
5.3.60.0530.04313.79
5.3.50.0870.04713.93
5.3.40.0730.05313.73
5.3.30.0830.03313.74
5.3.20.0700.05013.57
5.3.10.0930.04713.43
5.3.00.0670.05313.48
5.2.170.0770.05711.00
5.2.160.0370.04710.99
5.2.150.0000.04711.08
5.2.140.0100.03711.00
5.2.130.0830.04011.04
5.2.120.0630.04710.96
5.2.110.0630.04011.04
5.2.100.0570.04710.95
5.2.90.0670.03711.04
5.2.80.0670.04310.98
5.2.70.0530.04011.08
5.2.60.0530.04710.89
5.2.50.0130.04010.96
5.2.40.0030.04010.84
5.2.30.0030.04310.83
5.2.20.0600.03010.95
5.2.10.0500.05010.80
5.2.00.0500.04010.63
5.1.60.0470.0339.96
5.1.50.0400.0409.89
5.1.40.0530.0339.82
5.1.30.0400.03710.34
5.1.20.0370.05310.37
5.1.10.0430.03710.08
5.1.00.0500.03710.04
5.0.50.0330.0308.44
5.0.40.0230.0338.57
5.0.30.0330.0408.24
5.0.20.0330.0238.05
5.0.10.0330.0278.16
5.0.00.0370.0338.21
4.4.90.0330.0335.84
4.4.80.0300.0205.79
4.4.70.0200.0235.83
4.4.60.0270.0205.81
4.4.50.0200.0275.83
4.4.40.0330.0405.78
4.4.30.0330.0175.86
4.4.20.0470.0175.87
4.4.10.0370.0205.87
4.4.00.0230.0375.82
4.3.110.0300.0235.71
4.3.100.0270.0205.75
4.3.90.0270.0235.73
4.3.80.0300.0335.75
4.3.70.0270.0235.73
4.3.60.0300.0205.64
4.3.50.0270.0205.71
4.3.40.0170.0405.66
4.3.30.0100.0234.51
4.3.20.0130.0204.50
4.3.10.0130.0234.55
4.3.00.0170.0207.20