3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('foo', 5); define('foo', 6); var_dump(foo);

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.0100.01019.33
7.1.100.0030.01018.05
7.1.70.0000.00816.70
7.1.60.0090.01619.46
7.1.50.0070.01616.79
7.1.00.0130.06722.51
7.0.200.0040.00416.34
7.0.140.0030.06722.18
7.0.60.0030.08719.84
7.0.50.0070.04317.89
7.0.40.0100.08320.24
7.0.30.0370.07020.17
7.0.20.0200.04020.09
7.0.10.0330.06320.21
7.0.00.0130.07720.16
5.6.280.0070.06321.09
5.6.210.0070.07720.72
5.6.200.0030.07318.17
5.6.190.0030.06020.64
5.6.180.4070.04020.31
5.6.170.0070.05720.41
5.6.160.0100.06020.40
5.6.150.0000.05018.08
5.6.140.0070.05018.20
5.6.130.0070.08018.18
5.6.120.0070.04021.00
5.6.110.0200.05021.04
5.6.100.0070.03721.09
5.6.90.0130.06321.07
5.6.80.0100.07020.27
5.6.70.0300.07320.39
5.5.350.0100.04020.43
5.5.340.0030.08017.95
5.5.330.0070.08020.07
5.5.320.0230.04020.29
5.5.310.0270.04020.29
5.5.300.0000.08317.97
5.5.290.0100.07317.93
5.5.280.0030.09020.68
5.5.270.0070.04020.75
5.5.260.0070.08720.93
5.5.250.0070.08320.48
5.5.240.0100.08020.36
5.4.450.0470.03319.11
5.4.440.1030.06319.52
5.4.430.0800.06019.21
5.4.420.0600.00019.48
5.4.410.0370.04018.70
5.4.400.0230.05718.72
5.4.390.0270.04718.68
5.4.380.0270.05018.77
5.4.370.0170.04018.61
5.4.360.0200.04718.74
5.4.350.0060.03811.97
5.4.340.0090.05211.96
5.4.320.0070.03812.45
5.4.310.0030.04512.45
5.4.300.0070.03812.45
5.4.290.0130.04512.45
5.4.280.0140.04412.34
5.4.270.0120.04512.34
5.4.260.0100.05312.35
5.4.250.0080.05612.34
5.4.240.0080.04712.35
5.4.230.0080.05012.34
5.4.220.0100.05412.34
5.4.210.0090.05112.34
5.4.200.0140.04912.34
5.4.190.0110.04912.33
5.4.180.0070.05012.34
5.4.170.0110.04612.35
5.4.160.0080.05112.34
5.4.150.0070.04812.34
5.4.140.0120.04312.02
5.4.130.0080.04612.01
5.4.120.0130.04311.96
5.4.110.0080.04111.96
5.4.100.0090.04211.96
5.4.90.0130.04311.96
5.4.80.0100.04711.96
5.4.70.0060.03811.96
5.4.60.0050.04911.96
5.4.50.0100.04611.96
5.4.40.0100.04411.95
5.4.30.0070.04611.95
5.4.20.0100.04611.95
5.4.10.0090.04611.95
5.4.00.0080.05111.44
5.3.290.0090.04812.80
5.3.280.0080.05012.71
5.3.270.0160.04912.72
5.3.260.0070.05912.72
5.3.250.0060.05312.71
5.3.240.0060.05412.72
5.3.230.0070.04912.71
5.3.220.0100.04812.68
5.3.210.0090.05412.68
5.3.200.0110.04712.68
5.3.190.0080.04912.68
5.3.180.0090.04912.68
5.3.170.0030.05412.67
5.3.160.0120.03912.68
5.3.150.0120.04912.68
5.3.140.0140.05612.66
5.3.130.0150.05312.66
5.3.120.0090.04212.65
5.3.110.0040.05012.65
5.3.100.0080.04012.12
5.3.90.0100.04112.08
5.3.80.0110.06012.07
5.3.70.0150.04312.08
5.3.60.0110.03912.06
5.3.50.0100.07712.00
5.3.40.0090.05312.00
5.3.30.0080.05011.94
5.3.20.0060.05011.72
5.3.10.0100.04711.69
5.3.00.0090.05111.67
5.2.170.0050.0519.18
5.2.160.0050.0459.18
5.2.150.0060.0459.18
5.2.140.0060.0459.17
5.2.130.0110.0419.13
5.2.120.0050.0459.13
5.2.110.0080.0439.14
5.2.100.0060.0639.13
5.2.90.0100.0509.14
5.2.80.0110.0559.13
5.2.70.0050.0439.13
5.2.60.0080.0389.08
5.2.50.0080.0379.05
5.2.40.0100.0339.03
5.2.30.0100.0359.01
5.2.20.0060.0419.00
5.2.10.0070.0388.92
5.2.00.0080.0388.77
5.1.60.0080.0318.06
5.1.50.0040.0438.05
5.1.40.0070.0338.04
5.1.30.0050.0388.39
5.1.20.0090.0248.41
5.1.10.0090.0328.14
5.1.00.0030.0358.14
5.0.50.0040.0206.61
5.0.40.0030.0206.47
5.0.30.0090.0386.28
5.0.20.0020.0296.25
5.0.10.0040.0286.23
5.0.00.0050.0306.23
4.4.90.0020.0164.78
4.4.80.0050.0154.75
4.4.70.0040.0214.75
4.4.60.0030.0214.75
4.4.50.0050.0194.77
4.4.40.0030.0324.71
4.4.30.0030.0204.76
4.4.20.0040.0164.84
4.4.10.0050.0154.85
4.4.00.0020.0264.76
4.3.110.0060.0134.67
4.3.100.0030.0154.67
4.3.90.0030.0194.63
4.3.80.0040.0314.58
4.3.70.0050.0204.63
4.3.60.0050.0214.63
4.3.50.0060.0174.63
4.3.40.0030.0294.54
4.3.30.0040.0183.27
4.3.20.0040.0183.25
4.3.10.0030.0203.21
4.3.00.0170.01316.14