3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array('test[1]' => 'a'));

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.01319.04
7.1.100.0030.01018.11
7.1.70.0100.00316.92
7.1.60.0120.01219.33
7.1.50.0000.01416.80
7.1.00.0070.07322.35
7.0.200.0420.00414.36
7.0.140.0070.07022.05
7.0.60.0070.07320.02
7.0.50.0130.05717.80
7.0.40.0170.06320.40
7.0.30.0470.06020.33
7.0.20.0300.03720.18
7.0.10.0130.08020.03
7.0.00.0100.08720.09
5.6.280.0030.07320.78
5.6.210.0100.07320.69
5.6.200.0000.04318.21
5.6.190.0070.04020.27
5.6.180.0300.06320.39
5.6.170.0230.04720.52
5.6.160.0070.04320.40
5.6.150.0030.06018.09
5.6.140.0070.08018.15
5.6.130.0000.05718.09
5.6.120.0100.08320.89
5.6.110.0130.05320.99
5.6.100.0070.08321.12
5.6.90.0170.07020.96
5.6.80.0130.06720.37
5.6.70.4500.03720.36
5.5.350.0170.07020.28
5.5.340.0000.04318.04
5.5.330.0130.07320.40
5.5.320.0270.05020.27
5.5.310.0230.05720.32
5.5.300.0100.08317.92
5.5.290.0030.04018.01
5.5.280.0070.04020.87
5.5.270.0000.04720.95
5.5.260.0130.07720.86
5.5.250.0070.05720.75
5.5.240.0070.03720.03
5.4.450.0930.07019.48
5.4.440.0900.04719.47
5.4.430.0970.04019.40
5.4.420.0830.00019.48
5.4.410.0130.05018.70
5.4.400.0300.04318.67
5.4.390.0230.06018.63
5.4.380.0300.04718.74
5.4.370.0300.05718.75
5.4.360.0330.04018.57
5.4.350.0050.03911.97
5.4.340.0070.03311.96
5.4.320.0090.03512.45
5.4.310.0070.04312.45
5.4.300.0100.04312.45
5.4.290.0060.04112.45
5.4.280.0070.04912.32
5.4.270.0090.03312.32
5.4.260.0070.03812.32
5.4.250.0070.04012.32
5.4.240.0080.03712.32
5.4.230.0060.04012.31
5.4.220.0100.03512.31
5.4.210.0080.04612.31
5.4.200.0060.04812.31
5.4.190.0080.04112.30
5.4.180.0110.04812.30
5.4.170.0070.03912.32
5.4.160.0100.04712.32
5.4.150.0070.04212.31
5.4.140.0060.03911.99
5.4.130.0070.03711.98
5.4.120.0070.03911.94
5.4.110.0060.03611.94
5.4.100.0050.04311.94
5.4.90.0050.04011.93
5.4.80.0050.03811.94
5.4.70.0110.03111.93
5.4.60.0060.03811.93
5.4.50.0100.04011.93
5.4.40.0060.04711.92
5.4.30.0130.04311.92
5.4.20.0100.04511.92
5.4.10.0110.04311.92
5.4.00.0090.04911.41
5.3.290.0050.04112.80
5.3.280.0100.03912.70
5.3.270.0080.05512.73
5.3.260.0050.05612.72
5.3.250.0080.04012.72
5.3.240.0100.04112.72
5.3.230.0070.04412.71
5.3.220.0120.03212.68
5.3.210.0110.03912.68
5.3.200.0070.03612.68
5.3.190.0070.03812.68
5.3.180.0070.03612.67
5.3.170.0090.03512.67
5.3.160.0040.03912.67
5.3.150.0070.03812.68
5.3.140.0060.03812.66
5.3.130.0160.04112.66
5.3.120.0080.03912.66
5.3.110.0080.03912.66
5.3.100.0060.03912.12
5.3.90.0080.03912.08
5.3.80.0070.03712.07
5.3.70.0110.04812.07
5.3.60.0110.04612.07
5.3.50.0120.04812.00
5.3.40.0070.05212.00
5.3.30.0070.06111.94
5.3.20.0070.05411.70
5.3.10.0090.05111.66
5.3.00.0050.05511.66
5.2.170.0070.0429.14
5.2.160.0050.0439.15
5.2.150.0080.0429.15
5.2.140.0140.0379.14
5.2.130.0030.0459.10
5.2.120.0080.0439.11
5.2.110.0060.0469.11
5.2.100.0070.0429.11
5.2.90.0120.0349.11
5.2.80.0070.0419.11
5.2.70.0080.0389.10
5.2.60.0090.0409.05
5.2.50.0080.0399.03
5.2.40.0050.0339.00
5.2.30.0090.0268.98
5.2.20.0030.0318.97
5.2.10.0050.0298.89
5.2.00.0060.0398.75
5.1.60.0040.0318.04
5.1.50.0070.0358.04
5.1.40.0060.0268.02
5.1.30.0080.0328.37
5.1.20.0080.0328.39
5.1.10.0050.0268.11
5.1.00.0030.0288.11
5.0.50.0040.0236.59
5.0.40.0050.0196.45
5.0.30.0030.0336.26
5.0.20.0050.0196.24
5.0.10.0060.0196.22
5.0.00.0030.0326.21
4.4.90.0010.0184.77
4.4.80.0030.0164.75
4.4.70.0040.0154.75
4.4.60.0020.0174.75
4.4.50.0030.0164.77
4.4.40.0040.0244.71
4.4.30.0040.0174.76
4.4.20.0030.0184.84
4.4.10.0030.0164.85
4.4.00.0030.0284.76
4.3.110.0040.0204.67
4.3.100.0050.0154.67
4.3.90.0030.0154.63
4.3.80.0030.0324.58
4.3.70.0060.0184.63
4.3.60.0060.0164.63
4.3.50.0050.0204.62
4.3.40.0030.0294.54
4.3.30.0050.0183.26
4.3.20.0020.0253.24
4.3.10.0020.0233.21
4.3.00.0130.0237.88