3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = array(); $x[4] = '??'; $x[1] = '!!'; var_dump($x);

Here you find the average performance (time & memory) of each version. A greyed 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.3.0alpha10.0030.00512.68
7.2.60.0000.01616.78
7.2.00.0080.00419.27
7.1.100.0110.00018.26
7.1.70.0050.00217.32
7.1.60.0120.00919.50
7.1.50.0130.01016.51
7.1.00.0000.08022.48
7.0.200.0040.00714.60
7.0.140.0100.06722.18
7.0.60.0070.05319.80
7.0.50.0030.06717.89
7.0.40.0200.07720.32
7.0.30.0300.08720.30
7.0.20.0300.06720.00
7.0.10.0170.06020.16
7.0.00.0030.08720.16
5.6.280.0030.07321.01
5.6.210.0000.04320.68
5.6.200.0070.05718.13
5.6.190.0000.05320.60
5.6.180.0470.06320.56
5.6.170.0200.06020.42
5.6.160.0000.04720.48
5.6.150.0030.08018.19
5.6.140.0030.08018.16
5.6.130.0030.08018.21
5.6.120.0100.04720.98
5.6.110.0130.05021.10
5.6.100.0100.08020.96
5.6.90.0000.09020.94
5.6.80.0170.07020.52
5.6.70.0230.08020.37
5.5.350.0370.07020.45
5.5.340.0070.07718.04
5.5.330.0170.05720.19
5.5.320.0030.06320.08
5.5.310.0330.07720.32
5.5.300.0100.07717.89
5.5.290.0070.08317.95
5.5.280.0030.08720.64
5.5.270.0130.08020.77
5.5.260.0030.08720.87
5.5.250.0100.06720.57
5.5.240.0130.06720.28
5.4.450.0700.05319.20
5.4.440.0070.08019.10
5.4.430.0630.06319.48
5.4.420.0930.04719.63
5.4.410.0200.07018.80
5.4.400.0930.06718.51
5.4.390.0430.06318.71
5.4.380.1170.07018.72
5.4.370.0970.08018.68
5.4.360.0830.06018.69
5.4.350.0930.07318.73
5.4.340.1100.06018.54
5.4.320.0800.05318.77
5.4.310.0770.07018.55
5.4.300.1070.05718.59
5.4.290.0970.06018.57
5.4.280.0870.06718.66
5.4.270.1030.06318.47
5.4.260.1030.06718.70
5.4.250.0970.07318.70
5.4.240.1070.05718.59
5.4.230.0870.05718.49
5.4.220.0670.06018.47
5.4.210.0870.07318.70
5.4.200.0930.05316.64
5.4.190.1000.05018.72
5.4.180.0900.07718.50
5.4.170.0870.08018.43
5.4.160.0900.05718.59
5.4.150.0930.06018.41
5.4.140.0930.06716.18
5.4.130.0770.05716.13
5.4.120.1070.05716.20
5.4.110.0930.06016.18
5.4.100.0900.07016.20
5.4.90.1100.08316.25
5.4.80.0830.08316.10
5.4.70.0970.07016.12
5.4.60.0970.07716.26
5.4.50.1330.05716.01
5.4.40.1270.06316.15
5.4.30.0870.05316.27
5.4.20.0930.07716.14
5.4.10.0800.06316.09
5.4.00.0700.06315.66
5.3.290.0870.07014.64
5.3.280.1000.06714.66
5.3.270.0970.07714.55
5.3.260.0930.07014.67
5.3.250.1370.05314.69
5.3.240.1270.05714.64
5.3.230.1130.06714.53
5.3.220.0800.07314.55
5.3.210.1170.05314.61
5.3.200.0870.05714.55
5.3.190.1100.05314.54
5.3.180.0970.06014.55
5.3.170.1000.06014.61
5.3.160.0970.04714.55
5.3.150.0930.06014.60
5.3.140.1030.06314.63
5.3.130.0930.06714.54
5.3.120.1170.07014.52
5.3.110.0930.05714.49
5.3.100.0870.06314.08
5.3.90.0930.05713.98
5.3.80.0700.06714.10
5.3.70.0900.06713.98
5.3.60.0870.06013.89
5.3.50.0870.06713.93
5.3.40.1100.08013.93
5.3.30.1170.05713.89
5.3.20.1130.05013.66
5.3.10.0870.06013.73
5.3.00.0930.06013.54
5.2.170.0630.05011.13
5.2.160.0800.05011.11
5.2.150.0730.05711.09
5.2.140.0800.05711.11
5.2.130.0730.05311.13
5.2.120.0700.04711.13
5.2.110.0800.05311.13
5.2.100.0770.05311.13
5.2.90.1030.05311.10
5.2.80.0670.06311.13
5.2.70.0930.05711.05
5.2.60.0700.06310.96
5.2.50.0600.04311.16
5.2.40.0700.05011.02
5.2.30.0730.06010.89
5.2.20.0930.03310.92
5.2.10.0900.05710.84
5.2.00.0630.05710.86
5.1.60.0730.0479.95
5.1.50.0830.04010.12
5.1.40.0730.04710.01
5.1.30.0800.05010.36
5.1.20.0670.03710.41
5.1.10.0600.05310.18
5.1.00.0770.03710.20
5.0.50.0430.0338.55
5.0.40.0470.0308.43
5.0.30.0230.0478.29
5.0.20.0270.0278.16
5.0.10.0230.0338.20
5.0.00.0270.0538.15
4.4.90.0230.0235.87
4.4.80.0230.0375.90
4.4.70.0300.0305.86
4.4.60.0270.0275.89
4.4.50.0230.0305.88
4.4.40.0330.0475.89
4.4.30.0430.0175.80
4.4.20.0470.0235.87
4.4.10.0200.0305.97
4.4.00.0370.0335.96
4.3.110.0370.0235.83
4.3.100.0270.0205.84
4.3.90.0330.0275.80
4.3.80.0300.0435.77
4.3.70.0100.0275.77
4.3.60.0200.0235.81
4.3.50.0300.0275.77
4.3.40.0270.0405.75
4.3.30.0130.0234.60
4.3.20.0200.0204.53
4.3.10.0170.0174.49
4.3.00.0100.0206.68