3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new DateTime('-1 hour'); echo $a->format('c');

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.0170.00498.97
7.3.0rc30.0230.00316.61
7.3.0beta10.0050.00012.98
7.3.0alpha10.0030.00712.85
7.2.60.0090.00617.02
7.2.00.0100.00619.65
7.1.200.0070.00315.81
7.1.100.0000.01118.18
7.1.70.0060.00916.81
7.1.60.0070.01719.40
7.1.50.0100.01316.88
7.1.00.0000.08022.43
7.0.200.0000.00816.70
7.0.140.0030.07022.18
7.0.60.0200.08019.96
7.0.50.0070.05317.91
7.0.40.0130.08320.21
7.0.30.0330.05320.16
7.0.20.0270.05020.09
7.0.10.0030.05320.17
7.0.00.0030.04320.04
5.6.280.0030.07321.09
5.6.210.0100.03720.52
5.6.200.0170.06718.14
5.6.190.0030.04320.39
5.6.180.0200.04020.59
5.6.170.0130.04720.42
5.6.160.0070.08320.44
5.6.150.0070.07018.15
5.6.140.0070.05318.20
5.6.130.0130.07318.11
5.6.120.0030.04321.09
5.6.110.0030.09020.98
5.6.100.0130.08020.97
5.6.90.0130.07720.94
5.6.80.0130.07320.50
5.5.350.0270.07320.38
5.5.340.0070.06317.98
5.5.330.0200.07020.40
5.5.320.0330.07720.30
5.5.310.0270.08020.16
5.5.300.0030.04017.92
5.5.290.0030.08718.02
5.5.280.0200.07020.89
5.5.270.0130.07320.86
5.5.260.0200.07020.84
5.5.250.0070.05320.68
5.5.240.0300.06320.16
5.4.450.0900.04719.58
5.4.440.0270.04319.49
5.4.430.0300.05019.45
5.4.420.0270.04019.40
5.4.410.0200.04319.13
5.4.400.0270.03719.09
5.4.390.0330.04319.22
5.4.380.0430.04318.72
5.4.370.0370.05018.71
5.4.360.0300.06018.72
5.4.350.0370.05018.57
5.4.340.0300.05318.78
5.4.320.0050.03812.46
5.4.310.0060.04412.45
5.4.300.0060.03712.46
5.4.290.0060.03612.45
5.4.280.0030.03812.35
5.4.270.0050.03612.35
5.4.260.0100.03412.35
5.4.250.0060.03912.35
5.4.240.0060.03612.35
5.4.230.0050.03812.34
5.4.220.0060.03612.34
5.4.210.0070.03512.34
5.4.200.0050.03612.34
5.4.190.0060.04512.34
5.4.180.0080.04012.34
5.4.170.0040.03912.35
5.4.160.0040.03912.34
5.4.150.0050.03712.34
5.4.140.0040.03912.03
5.4.130.0040.03712.01
5.4.120.0090.03111.97
5.4.110.0050.03811.96
5.4.100.0030.04411.96
5.4.90.0060.03611.96
5.4.80.0060.03611.96
5.4.70.0100.03711.96
5.4.60.0080.04011.96
5.4.50.0050.03411.96
5.4.40.0030.03611.95
5.4.30.0050.03511.94
5.4.20.0060.03611.95
5.4.10.0080.03211.95
5.4.00.0060.04211.43
5.3.290.0060.04312.80
5.3.280.0080.03412.71
5.3.270.0070.03712.72
5.3.260.0090.03512.72
5.3.250.0080.04212.72
5.3.240.0100.03712.71
5.3.230.0090.03612.70
5.3.220.0060.03612.68
5.3.210.0040.04112.68
5.3.200.0040.03912.68
5.3.190.0060.03812.68
5.3.180.0070.03612.67
5.3.170.0050.03712.67
5.3.160.0060.03712.67
5.3.150.0060.03712.68
5.3.140.0050.03612.66
5.3.130.0050.04012.66
5.3.120.0040.04212.65
5.3.110.0090.03712.65
5.3.100.0060.03512.12
5.3.90.0070.03812.09
5.3.80.0050.03512.08
5.3.70.0050.03712.07
5.3.60.0040.03712.06
5.3.50.0050.04012.00
5.3.40.0080.03512.00
5.3.30.0030.03711.94
5.3.20.0050.03511.72
5.3.10.0060.03511.69
5.3.00.0050.03711.68
5.2.170.0020.0329.18
5.2.160.0040.0299.18
5.2.150.0060.0299.18
5.2.140.0040.0419.18
5.2.130.0030.0359.14
5.2.120.0070.0299.14
5.2.110.0050.0289.14
5.2.100.0030.0319.14
5.2.90.0020.0329.14
5.2.80.0040.0309.13
5.2.70.0030.0319.13
5.2.60.0060.0289.09
5.2.50.0050.0299.06
5.2.40.0050.0289.04
5.2.30.0030.0319.01
5.2.20.0050.0289.00
5.2.10.0030.0298.92
5.2.00.0060.0348.77
5.1.60.0050.0338.06
5.1.50.0010.0288.06
5.1.40.0050.0268.04
5.1.30.0050.0248.39
5.1.20.0060.0318.41
5.1.10.0040.0298.14
5.1.00.0020.0288.14
5.0.50.0030.0206.61
5.0.40.0040.0246.47
5.0.30.0040.0306.29
5.0.20.0030.0196.26
5.0.10.0040.0196.24
5.0.00.0020.0316.23
4.4.90.0050.0194.78
4.4.80.0030.0194.75
4.4.70.0030.0194.75
4.4.60.0040.0144.75
4.4.50.0020.0274.77
4.4.40.0040.0304.71
4.4.30.0010.0164.76
4.4.20.0040.0164.85
4.4.10.0010.0164.85
4.4.00.0010.0264.76
4.3.110.0030.0154.67
4.3.100.0040.0174.67
4.3.90.0010.0164.63
4.3.80.0030.0254.58
4.3.70.0010.0164.63
4.3.60.0000.0174.63
4.3.50.0020.0174.63
4.3.40.0010.0244.54
4.3.30.0030.0213.28
4.3.20.0010.0163.25
4.3.10.0010.0163.21
4.3.00.0000.02015.96