3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo extends DatePeriod { public function __construct() { } } foreach (new foo as $y);

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.60.0040.01216.65
7.2.00.0000.01519.37
7.1.200.0070.00715.82
7.1.100.1520.00716.98
7.1.90.0450.01316.10
7.1.80.2790.00615.79
7.1.70.0040.00916.05
7.1.60.0240.01526.54
7.1.50.0230.00933.98
7.1.40.2350.01332.48
7.1.30.0180.01432.81
7.1.20.0300.00032.80
7.1.10.1610.01014.64
7.1.00.0070.04218.53
7.0.240.0090.01215.53
7.0.230.0110.00815.84
7.0.220.0110.00815.91
7.0.210.0100.00714.68
7.0.200.0110.00915.76
7.0.190.2000.01014.65
7.0.180.1890.00714.32
7.0.170.0130.00314.32
7.0.160.1970.01014.14
7.0.150.0080.01214.27
7.0.140.0060.04118.27
7.0.130.0150.00614.47
7.0.120.0120.01114.51
7.0.110.0160.00414.32
7.0.100.0230.04517.20
7.0.90.0910.03817.04
7.0.80.0220.04517.15
7.0.70.0800.04717.21
7.0.60.0310.03517.03
7.0.50.0230.04117.40
7.0.40.0110.04717.26
7.0.30.0060.05117.40
7.0.20.1160.04517.30
7.0.10.1310.03317.33
7.0.00.1320.02817.22
hhvm-3.22.00.0740.20291.18
hhvm-3.21.30.1080.29390.88
hhvm-3.21.00.4070.22091.04
hhvm-3.20.20.0950.21491.34
hhvm-3.19.20.0490.21590.12
hhvm-3.18.50.0500.17089.53
hhvm-3.18.40.1090.20788.97
hhvm-3.17.30.0860.17188.51
hhvm-3.15.40.0810.16386.02
hhvm-3.13.20.0670.17697.54
hhvm-3.12.140.0570.17296.18
hhvm-3.11.10.0740.18888.42
hhvm-3.10.10.0700.19785.28
5.6.300.0210.05220.58
5.6.290.0180.05320.99
5.6.280.0070.05920.73
5.6.270.0100.06420.93
5.6.260.0160.04920.94
5.6.250.0160.04920.67
5.6.240.0140.05320.68
5.6.230.0170.06520.72
5.6.220.0130.06420.77
5.6.210.0100.07220.68
5.6.200.0130.07020.99
5.6.190.0190.06020.94
5.6.180.0120.06920.79
5.6.170.0150.06520.82
5.6.160.0050.08320.88
5.6.150.0140.07020.91
5.6.140.0050.07020.88
5.6.130.0070.08320.87
5.6.120.0100.06820.95
5.6.110.0130.05020.88
5.6.100.0080.06820.84
5.6.90.0150.06520.86
5.6.80.0130.07320.33
5.6.70.0170.05920.27
5.6.60.0130.06720.36
5.6.50.0120.05120.31
5.6.40.0140.04920.20
5.6.30.0130.06020.23
5.6.20.0100.07020.33
5.6.10.0060.05820.22
5.6.00.0100.06620.25
5.5.380.0090.07119.00
5.5.370.0110.06518.97
5.5.360.0180.06218.97
5.5.350.0150.07018.82
5.5.340.0100.06519.40
5.5.330.0080.05619.32
5.5.320.0110.06719.30
5.5.310.0080.07019.23
5.5.300.0080.06919.48
5.5.290.0080.07019.25
5.5.280.0130.06519.33
5.5.270.0070.08419.19
5.5.260.0100.06819.28
5.5.250.0070.07519.25
5.5.240.0060.05818.67
5.5.230.0100.04918.69
5.5.220.0050.07018.71
5.5.210.0130.06018.70
5.5.200.0080.07218.63
5.5.190.0110.06418.79
5.5.180.0100.07318.66
5.5.160.0120.06418.76
5.5.150.0070.07918.76
5.5.140.0160.04918.65
5.5.130.0100.06318.79
5.5.120.0100.05018.76
5.5.110.0130.05618.72
5.5.100.0100.06318.64
5.5.90.0090.04318.62
5.5.80.0080.04918.50
5.5.70.0100.05818.71
5.5.60.0130.06118.53
5.5.50.0160.05918.69
5.5.40.0130.05518.66
5.5.30.0110.06718.49
5.5.20.0120.06818.49
5.5.10.0100.06818.43
5.5.00.0170.06518.64
5.4.450.0130.06519.35
5.4.440.0160.06619.15
5.4.430.0130.06919.27
5.4.420.0200.05619.19
5.4.410.0150.05719.09
5.4.400.0130.06318.97
5.4.390.0110.06618.91
5.4.380.0060.05018.83
5.4.370.0070.06419.07
5.4.360.0120.06318.87
5.4.350.0050.06818.96
5.4.340.0060.05618.99
5.4.320.0130.06519.00
5.4.310.0100.07119.04
5.4.300.0130.06518.83
5.4.290.0080.06718.92
5.4.280.0070.05918.99
5.4.270.0250.05118.85
5.4.260.0160.06218.97
5.4.250.0080.04818.87
5.4.240.0050.04618.87
5.4.230.0090.05818.87
5.4.220.0160.05218.89
5.4.210.0120.06018.94
5.4.200.0060.06318.96
5.4.190.0070.06719.00
5.4.180.0130.05718.78
5.4.170.0110.05618.98
5.4.160.0140.07018.90
5.4.150.0120.06718.99
5.4.140.0130.06916.25
5.4.130.0090.05216.41
5.4.120.0100.05816.49
5.4.110.0070.04716.53
5.4.100.0080.05516.46
5.4.90.0150.05016.36
5.4.80.0050.05716.48
5.4.70.0130.06416.46
5.4.60.0110.05816.34
5.4.50.0050.06716.47
5.4.40.0100.05316.48
5.4.30.0120.04816.37
5.4.20.0100.05616.35
5.4.10.0060.05816.48
5.4.00.0080.05515.77
5.3.290.0050.06415.07
5.3.280.0150.04715.08
5.3.270.0090.06115.11
5.3.260.0120.07415.04
5.3.250.0080.07515.00
5.3.240.0140.05315.11
5.3.230.0070.04915.14
5.3.220.0120.05815.01
5.3.210.0060.05515.02
5.3.200.0140.04415.12
5.3.190.0160.05614.92
5.3.180.0100.05515.06
5.3.170.0100.06815.11
5.3.160.0030.06115.01
5.3.150.0100.06215.02
5.3.140.0100.06815.07
5.3.130.0090.05915.13
5.3.120.0140.05114.97
5.3.110.0110.05015.12
5.3.100.0060.06314.82
5.3.90.0180.06014.73
5.3.80.0090.06114.71
5.3.70.0080.06514.76
5.3.60.0100.06414.71
5.3.50.0030.06414.67
5.3.40.0110.05414.78
5.3.30.0120.05614.77
5.3.20.0070.05814.55
5.3.10.0100.05714.51
5.3.00.0180.05314.57
5.2.170.0090.05313.50
5.2.160.0060.05313.46
5.2.150.0080.05613.42
5.2.140.0140.04413.46
5.2.130.0080.05613.36
5.2.120.0070.05213.44
5.2.110.0100.04713.44
5.2.100.0050.04613.39
5.2.90.0070.05513.46
5.2.80.0070.05713.35
5.2.70.0060.05713.47
5.2.60.0070.05313.41
5.2.50.0120.04413.40
5.2.40.0100.05013.37
5.2.30.0080.05213.29
5.2.20.0060.04713.40
5.2.10.0090.04413.19
5.2.00.0050.04913.23
5.1.60.0070.04312.93
5.1.50.0090.04212.83
5.1.40.0020.04712.93
5.1.30.0080.04013.10
5.1.20.0080.03613.06
5.1.10.0030.04112.93
5.1.00.0070.04712.93
5.0.50.0050.03012.11
5.0.40.0080.03412.12
5.0.30.0060.04411.84
5.0.20.0050.03111.99
5.0.10.0020.04011.87
5.0.00.0070.04512.03
4.4.90.0020.03011.44
4.4.80.0050.02711.44
4.4.70.0090.01511.44
4.4.60.0040.02611.44
4.4.50.0110.01511.44
4.4.40.0030.04411.44
4.4.30.0080.01911.44
4.4.20.0050.02611.44
4.4.10.0030.02311.44
4.4.00.0020.04111.44
4.3.110.0020.03011.44
4.3.100.0020.03011.44
4.3.90.0040.01911.44
4.3.80.0010.03611.44
4.3.70.0070.02511.44
4.3.60.0050.02511.44
4.3.50.0010.02511.44
4.3.40.0050.04511.44
4.3.30.0030.02811.44
4.3.20.0060.02711.44
4.3.10.0030.02811.44
4.3.00.0030.02711.44