3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tz = new DateTimeZone('Europe/Brussels'); $date = new DateTime('2014-10-26T02:00:00', $tz); $interval = new DateInterval('PT30M'); echo $date->sub($interval);

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.3.0rc40.0110.00798.97
7.3.0rc30.0250.00416.44
7.3.0beta10.0150.00812.59
7.3.0alpha10.0040.00412.68
7.2.60.0140.00017.09
7.2.00.0030.00919.22
7.1.200.0060.00615.60
7.1.100.0000.01218.25
7.1.70.0040.00417.30
7.1.60.0100.01319.32
7.1.50.0000.01516.85
7.1.00.0070.07022.27
7.0.200.0030.00616.68
7.0.140.0030.07722.09
7.0.70.4370.04019.97
7.0.60.0000.04320.00
7.0.50.0070.07717.82
7.0.40.0130.03720.26
7.0.30.0130.04320.10
7.0.20.0330.07720.24
7.0.10.0330.07720.21
7.0.00.0030.08020.41
5.6.280.0100.06321.07
5.6.210.0200.07320.51
5.6.200.0100.06718.19
5.6.190.0100.08320.45
5.6.180.0330.06020.63
5.6.170.0330.06720.38
5.6.160.0030.05720.38
5.6.150.0000.05318.18
5.6.140.0100.07318.14
5.6.130.0100.03718.19
5.6.120.0200.07020.86
5.6.110.0070.04021.04
5.6.100.0100.07321.00
5.6.90.0130.03020.97
5.6.80.0000.06020.32
5.6.70.0230.07720.43
5.5.350.0170.07320.52
5.5.340.0100.08017.93
5.5.330.0070.04020.40
5.5.320.0070.07020.21
5.5.310.0370.07020.30
5.5.300.0130.04317.95
5.5.290.0030.08017.88
5.5.280.0130.05320.79
5.5.270.0030.04320.86
5.5.260.0170.05320.86
5.5.250.0100.08020.68
5.5.240.0070.04020.15
5.4.450.0730.05719.32
5.4.440.0700.05019.13
5.4.430.0670.05719.44
5.4.420.0630.00019.68
5.4.410.0670.00019.35
5.4.400.0630.00019.22
5.4.390.0630.00019.26
5.4.380.0670.00019.07
5.4.370.0730.00019.25
5.4.360.0630.00018.95
5.4.350.0630.00019.14
5.4.340.0050.03511.97
5.4.320.0060.03612.46
5.4.310.0040.03912.46
5.4.300.0040.03812.46
5.4.290.0060.03912.46
5.4.280.0050.03612.35
5.4.270.0070.03812.36
5.4.260.0040.04012.35
5.4.250.0040.04012.35
5.4.240.0060.03612.36
5.4.230.0080.03712.34
5.4.220.0100.03812.35
5.4.210.0070.03512.34
5.4.200.0080.04112.35
5.4.190.0100.03412.34
5.4.180.0060.03612.34
5.4.170.0090.04212.35
5.4.160.0040.04212.35
5.4.150.0090.03612.34
5.4.140.0070.03912.02
5.4.130.0070.04112.02
5.4.120.0070.04711.97
5.4.110.0090.04011.97
5.4.100.0090.03711.96
5.4.90.0070.04211.96
5.4.80.0060.03811.96
5.4.70.0070.03611.96
5.4.60.0040.04211.96
5.4.50.0060.03511.97
5.4.40.0050.03411.95
5.4.30.0070.03411.95
5.4.20.0030.03711.95
5.4.10.0090.03511.95
5.4.00.0080.03411.44
5.3.290.0090.04312.80
5.3.280.0060.04512.71
5.3.270.0070.04612.72
5.3.260.0070.03912.71
5.3.250.0090.04612.71
5.3.240.0080.04312.72
5.3.230.0120.03712.71
5.3.220.0070.04112.68
5.3.210.0060.04312.68
5.3.200.0090.03812.68
5.3.190.0050.04012.68
5.3.180.0050.04312.67
5.3.170.0050.03812.67
5.3.160.0120.03312.67
5.3.150.0070.03712.67
5.3.140.0050.03712.66
5.3.130.0070.04112.66
5.3.120.0060.04212.66
5.3.110.0050.04212.65
5.3.100.0110.03612.12
5.3.90.0060.03912.08
5.3.80.0080.03412.07
5.3.70.0070.04312.07
5.3.60.0080.03812.06
5.3.50.0030.04612.00
5.3.40.0110.03412.00
5.3.30.0060.04311.95
5.3.20.0090.04011.73
5.3.10.0100.04311.69
5.3.00.0110.04511.68
5.2.170.0110.0359.18
5.2.160.0060.0409.19
5.2.150.0050.0429.19
5.2.140.0100.0379.18
5.2.130.0070.0389.14
5.2.120.0070.0389.14
5.2.110.0060.0389.15
5.2.100.0120.0339.15
5.2.90.0090.0379.15
5.2.80.0090.0389.14
5.2.70.0080.0399.14
5.2.60.0080.0399.09
5.2.50.0090.0349.07
5.2.40.0100.0349.04
5.2.30.0060.0379.02
5.2.20.0070.0289.01
5.2.10.0030.0368.93
5.2.00.0090.0348.79
5.1.60.0040.0258.07
5.1.50.0060.0278.06
5.1.40.0070.0278.04
5.1.30.0040.0278.39
5.1.20.0050.0308.41
5.1.10.0090.0308.14
5.1.00.0030.0278.14
5.0.50.0060.0206.62
5.0.40.0040.0226.48
5.0.30.0060.0306.29
5.0.20.0060.0266.26
5.0.10.0090.0226.24
5.0.00.0140.0886.23
4.4.90.0140.0294.78
4.4.80.0140.0214.75
4.4.70.0080.0384.76
4.4.60.0060.0304.75
4.4.50.0140.0314.77
4.4.40.0140.0464.71
4.4.30.0140.0384.76
4.4.20.0200.0304.84
4.4.10.0090.0214.85
4.4.00.0030.0344.76
4.3.110.0070.0214.67
4.3.100.0060.0204.67
4.3.90.0050.0224.63
4.3.80.0050.0354.58
4.3.70.0060.0204.63
4.3.60.0040.0204.63
4.3.50.0040.0214.63
4.3.40.0040.0304.54
4.3.30.0030.0203.28
4.3.20.0030.0243.26
4.3.10.0010.0223.21
4.3.00.0100.0237.18