3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(""); var_dump("0"); var_dump(0); var_dump(array()); class Test {} $t = new Test(); var_dump($t);
based on 89vVC

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.0030.00619.27
7.1.100.0030.01018.08
7.1.70.0030.00317.21
7.1.60.0100.01319.40
7.1.50.0130.01316.86
7.1.00.0000.08022.45
7.0.200.0000.00816.51
7.0.140.0030.07321.93
7.0.60.0070.07319.82
7.0.50.0070.04717.86
7.0.40.0000.09720.40
7.0.30.0570.06320.08
7.0.20.0330.05720.24
7.0.10.0030.09320.21
7.0.00.0030.09020.09
5.6.280.0000.07720.92
5.6.210.0070.07720.75
5.6.200.0070.07318.13
5.6.190.0000.04720.62
5.6.180.0230.04720.50
5.6.170.0270.05320.47
5.6.160.0030.04020.47
5.6.150.0100.03318.21
5.6.140.0000.08718.18
5.6.130.0070.08018.18
5.6.120.0070.04021.12
5.6.110.0030.07721.00
5.6.100.0100.06020.96
5.6.90.0100.08020.99
5.6.80.0070.08320.43
5.6.70.3800.04320.39
5.5.350.0300.05320.43
5.5.340.0070.05018.09
5.5.330.0100.08020.30
5.5.320.0170.04720.35
5.5.310.0330.07720.18
5.5.300.0130.03018.01
5.5.290.0100.07717.95
5.5.280.0100.08020.87
5.5.270.0000.04320.95
5.5.260.0130.06320.64
5.5.250.0030.08720.61
5.5.240.0270.06720.23
5.4.450.0830.06019.48
5.4.440.0730.05719.57
5.4.430.0030.06319.54
5.4.420.0100.05719.63
5.4.410.0100.05719.35
5.4.400.0330.06018.84
5.4.390.0670.06718.79
5.4.380.0400.05318.79
5.4.370.0330.05318.79
5.4.360.0670.05018.72
5.4.350.0070.05212.02
5.4.340.0140.04012.01
5.4.320.0080.04012.50
5.4.310.0070.03612.49
5.4.300.0070.03512.50
5.4.290.0050.04412.49
5.4.280.0040.03612.39
5.4.270.0040.03912.39
5.4.260.0050.03812.39
5.4.250.0030.04012.39
5.4.240.0080.03312.39
5.4.230.0030.04012.39
5.4.220.0060.03612.39
5.4.210.0040.03712.38
5.4.200.0040.03912.39
5.4.190.0030.03912.38
5.4.180.0040.03912.38
5.4.170.0080.03612.39
5.4.160.0060.03712.39
5.4.150.0080.03412.38
5.4.140.0040.03912.07
5.4.130.0040.03712.05
5.4.120.0070.03412.01
5.4.110.0060.03612.01
5.4.100.0060.03512.00
5.4.90.0060.03612.00
5.4.80.0050.03712.00
5.4.70.0070.03312.00
5.4.60.0040.03612.00
5.4.50.0070.03312.00
5.4.40.0040.03611.99
5.4.30.0050.03511.98
5.4.20.0040.03611.99
5.4.10.0050.03411.99
5.4.00.0060.03511.47
5.3.290.0080.04012.80
5.3.280.0060.03612.71
5.3.270.0060.03912.73
5.3.260.0050.03912.72
5.3.250.0070.03512.72
5.3.240.0050.03712.72
5.3.230.0090.03412.71
5.3.220.0040.03712.68
5.3.210.0040.04012.68
5.3.200.0050.03612.68
5.3.190.0090.03412.68
5.3.180.0040.03812.67
5.3.170.0110.03412.67
5.3.160.0030.03912.68
5.3.150.0050.03712.67
5.3.140.0100.03312.66
5.3.130.0090.03612.66
5.3.120.0080.03612.66
5.3.110.0070.03712.66
5.3.100.0070.03612.11
5.3.90.0090.03412.09
5.3.80.0080.03512.09
5.3.70.0070.03812.08
5.3.60.0050.03712.07
5.3.50.0110.03112.02
5.3.40.0070.04512.02
5.3.30.0060.03411.97
5.3.20.0030.03711.75
5.3.10.0070.03311.72
5.3.00.0070.03411.71
5.2.170.0060.0289.21
5.2.160.0050.0289.21
5.2.150.0050.0309.21
5.2.140.0060.0289.21
5.2.130.0020.0319.17
5.2.120.0050.0279.17
5.2.110.0060.0279.18
5.2.100.0040.0289.17
5.2.90.0060.0289.18
5.2.80.0040.0349.16
5.2.70.0060.0309.17
5.2.60.0040.0359.12
5.2.50.0060.0399.09
5.2.40.0040.0319.07
5.2.30.0040.0309.04
5.2.20.0060.0279.03
5.2.10.0050.0278.93
5.2.00.0040.0298.80
5.1.60.0060.0278.08
5.1.50.0040.0318.07
5.1.40.0050.0288.06
5.1.30.0060.0248.40
5.1.20.0030.0288.43
5.1.10.0070.0238.15
5.1.00.0040.0288.15
5.0.50.0020.0226.63
5.0.40.0090.0156.49
5.0.30.0040.0316.30
5.0.20.0010.0216.27
5.0.10.0030.0226.25
5.0.00.0020.0316.24
4.4.90.0040.0134.78
4.4.80.0020.0154.75
4.4.70.0020.0154.75
4.4.60.0030.0144.76
4.4.50.0030.0154.77
4.4.40.0030.0244.71
4.4.30.0010.0174.76
4.4.20.0030.0154.85
4.4.10.0010.0164.85
4.4.00.0040.0274.76
4.3.110.0040.0144.67
4.3.100.0010.0164.67
4.3.90.0010.0154.63
4.3.80.0050.0214.58
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0020.0244.54
4.3.30.0010.0163.29
4.3.20.0020.0163.27
4.3.10.0010.0163.23
4.3.00.0130.02310.97