3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $datetime1 = new DateTime('2014-07-23'); $datetime2 = new DateTime('2014-12-31'); $interval = $datetime1->diff($datetime2); echo $interval->format('%a')/7;
based on hlqup

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.0040.01119.18
7.1.100.0000.01218.24
7.1.70.0000.00716.93
7.1.60.0060.01219.22
7.1.50.0070.01516.63
7.1.00.0030.07722.28
7.0.200.0000.00716.82
7.0.140.0030.03722.15
7.0.60.0170.05721.80
7.0.50.0030.05317.89
7.0.40.0030.04720.05
7.0.30.0170.04320.17
7.0.20.0230.05320.18
7.0.10.0100.03720.20
7.0.00.0030.09320.12
5.6.280.0130.06321.07
5.6.210.0170.03320.46
5.6.200.0000.08718.17
5.6.190.0030.04320.30
5.6.180.0300.05020.60
5.6.170.0170.05020.54
5.6.160.0100.08320.48
5.6.150.0100.07718.12
5.6.140.0070.05018.16
5.6.130.0070.07318.12
5.6.120.0100.08020.98
5.6.110.0030.04721.01
5.6.100.0030.04720.95
5.6.90.0100.04320.95
5.6.80.0130.07720.50
5.5.350.0030.04320.34
5.5.340.0070.08318.00
5.5.330.0030.04020.40
5.5.320.0330.07020.51
5.5.310.0170.04320.14
5.5.300.0030.07717.95
5.5.290.0000.07017.91
5.5.280.0000.04320.73
5.5.270.0100.07020.75
5.5.260.0100.07720.72
5.5.250.0100.06320.50
5.5.240.0230.03320.28
5.4.450.3270.02719.55
5.4.440.3430.04319.45
5.4.430.3430.03719.37
5.4.420.3270.03319.54
5.4.410.3130.04319.08
5.4.400.4400.03019.10
5.4.390.3500.04018.92
5.4.380.3200.03719.09
5.4.370.4070.04319.08
5.4.360.4170.04019.08
5.4.350.3900.04019.06
5.4.340.3430.03019.09
5.4.320.3570.03319.21
5.4.310.3200.04019.25
5.4.300.3630.06018.80
5.4.290.4230.04719.08
5.4.280.3770.03719.13
5.4.270.3570.03319.23
5.4.260.3700.03718.88
5.4.250.3430.03318.87
5.4.240.3570.03019.27
5.4.230.3330.03719.15
5.4.220.2170.04019.24
5.4.210.3070.04318.80
5.4.200.2930.03318.80
5.4.190.3300.03318.87
5.4.180.3270.03319.12
5.4.170.3070.04319.21
5.4.160.3130.03718.91
5.4.150.3530.03719.21
5.4.140.3500.03316.43
5.4.130.3130.04016.30
5.4.120.3500.04716.48
5.4.110.3730.03016.47
5.4.100.3430.04316.25
5.4.90.2970.03316.54
5.4.80.3470.03316.47
5.4.70.3730.04016.10
5.4.60.3870.03316.15
5.4.50.0230.04016.17
5.4.40.1070.07016.46
5.4.30.3870.02716.36
5.4.20.4270.03016.18
5.4.10.4130.03316.35
5.4.00.3900.03715.80
5.3.290.3430.04014.64
5.3.280.3330.04014.50
5.3.270.3200.04014.55
5.3.260.3000.03714.63
5.3.250.3530.03714.55
5.3.240.3270.04014.56
5.3.230.3430.04014.53
5.3.220.3600.03714.43
5.3.210.3470.04014.37
5.3.200.3570.03714.51
5.3.190.3330.04014.52
5.3.180.3200.03314.61
5.3.170.3170.03014.54
5.3.160.3700.03314.49
5.3.150.0670.05714.65
5.3.140.0030.04314.39
5.3.130.4200.03314.57
5.3.120.4070.04314.48
5.3.110.3900.03714.52
5.3.100.3600.04313.94
5.3.90.3500.03713.95
5.3.80.3530.03313.84
5.3.70.3600.03713.95
5.3.60.3530.04313.80
5.3.50.3470.03713.74
5.3.40.3270.03713.85
5.3.30.3370.03713.79
5.3.20.3330.03013.68
5.3.10.0030.05013.43
5.3.00.0100.07013.58
5.2.170.2630.03710.98
5.2.160.3130.03011.20
5.2.150.2570.03311.01
5.2.140.2970.02311.08
5.2.130.2600.03010.95
5.2.120.1230.02711.02
5.2.110.0070.05011.14
5.2.100.3000.03011.04
5.2.90.3670.02711.05
5.2.80.3000.03010.94
5.2.70.3000.03311.04
5.2.60.3030.03310.99
5.2.50.2730.03010.96
5.2.40.2630.03011.05
5.2.30.2530.02311.13
5.2.20.2330.02710.80
5.2.10.2770.02010.95
5.2.00.2630.02710.81
5.1.60.2300.0279.90
5.1.50.2270.0209.92
5.1.40.2700.02710.02
5.1.30.2570.02310.35
5.1.20.2130.03010.31
5.1.10.2200.0239.94
5.1.00.2730.01710.04
5.0.50.1370.0208.47
5.0.40.1730.0178.45
5.0.30.1700.0338.27
5.0.20.1670.0208.20
5.0.10.1330.0208.24
5.0.00.1570.0278.16
4.4.90.1330.0207.79
4.4.80.1330.0177.79
4.4.70.1470.0107.79
4.4.60.1530.0177.79
4.4.50.1330.0177.79
4.4.40.1400.0237.79
4.4.30.1370.0177.79
4.4.20.1200.0177.79
4.4.10.1430.0207.79
4.4.00.1430.0237.79
4.3.110.1500.0207.79
4.3.100.1600.0107.79
4.3.90.1330.0137.79
4.3.80.0870.0307.79
4.3.70.1400.0137.79
4.3.60.1500.0177.79
4.3.50.1470.0177.79
4.3.40.1330.0237.79
4.3.30.0670.0177.79
4.3.20.1000.0207.79
4.3.10.0830.0277.79
4.3.00.1000.0207.79