3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('2000-01-20'); $date->sub(new DateInterval('P10D')); echo $date->format('Y-m-d') . "\n"; ?>

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.52
7.1.100.0130.01018.04
7.1.70.0110.00017.28
7.1.60.0100.01419.59
7.1.50.0030.00716.94
7.1.00.0000.08022.36
7.0.200.0030.00916.73
7.0.60.0100.08019.84
7.0.50.0030.08317.77
7.0.40.0130.03320.09
7.0.30.0300.06720.09
7.0.20.0300.05020.16
7.0.10.0030.08320.04
7.0.00.0030.08020.29
5.6.280.0030.07320.92
5.6.210.0170.06020.64
5.6.200.0100.08718.21
5.6.190.0170.07320.67
5.6.180.0370.05720.67
5.6.170.0130.07720.50
5.6.160.0000.05320.41
5.6.150.0100.04018.08
5.6.140.0030.04018.21
5.6.130.0130.06318.18
5.6.120.0070.06320.99
5.6.110.0030.08321.11
5.6.100.0030.08021.04
5.6.90.0100.03721.07
5.6.80.0130.07320.42
5.5.350.0330.05320.49
5.5.340.0100.06317.98
5.5.330.0170.06020.24
5.5.320.0200.08020.28
5.5.310.0170.04720.32
5.5.300.0070.04317.99
5.5.290.0030.04317.92
5.5.280.0070.08720.95
5.5.270.0100.08320.67
5.5.260.0070.08720.85
5.5.250.0130.07720.77
5.5.240.0030.07720.11
5.4.450.0170.05319.64
5.4.440.0130.05319.32
5.4.430.0230.05319.60
5.4.420.0270.04719.48
5.4.410.0200.05319.04
5.4.400.0330.03719.15
5.4.390.0230.04718.99
5.4.380.0100.05719.11
5.4.370.0270.04018.80
5.4.360.0270.04019.02
5.4.350.0070.06019.14
5.4.340.0130.06018.88
5.4.320.0130.05719.16
5.4.310.0230.05019.02
5.4.300.0200.05319.24
5.4.290.0230.04718.91
5.4.280.0200.05019.21
5.4.270.0200.05019.15
5.4.260.0230.04718.82
5.4.250.0230.04719.24
5.4.240.0330.04019.12
5.4.230.0170.05319.24
5.4.220.0200.05318.80
5.4.210.0270.04318.98
5.4.200.0100.05716.72
5.4.190.0170.05018.80
5.4.180.0130.05718.84
5.4.170.0270.04719.09
5.4.160.0100.06319.22
5.4.150.0230.04719.13
5.4.140.0130.05716.35
5.4.130.0070.05716.42
5.4.120.0170.05016.52
5.4.110.0170.05016.54
5.4.100.0130.05716.43
5.4.90.0130.05316.20
5.4.80.0030.06016.36
5.4.70.0170.05316.40
5.4.60.0170.05016.35
5.4.50.0170.05016.28
5.4.40.0170.05016.48
5.4.30.0230.04316.37
5.4.20.0100.05716.06
5.4.10.0070.06016.49
5.4.00.0170.04715.93
5.3.290.0200.05014.50
5.3.280.0230.04714.56
5.3.270.0070.06714.46
5.3.260.0100.06014.46
5.3.250.0170.05014.57
5.3.240.0230.04314.45
5.3.230.0100.05714.56
5.3.220.0200.05014.44
5.3.210.0230.04714.43
5.3.200.0130.05314.42
5.3.190.0200.05014.41
5.3.180.0130.05314.44
5.3.170.0100.06014.44
5.3.160.0230.04314.39
5.3.150.0130.05314.54
5.3.140.0170.05314.43
5.3.130.0130.05714.53
5.3.120.0230.04714.37
5.3.110.0270.04314.45
5.3.100.0170.05713.92
5.3.90.0200.04713.86
5.3.80.0230.04713.84
5.3.70.0030.06313.80
5.3.60.0130.05313.84
5.3.50.0130.05313.91
5.3.40.0200.05013.74
5.3.30.0230.04313.89
5.3.20.0200.05013.51
5.3.10.0230.04013.65
5.3.00.0170.04713.55
5.2.170.0100.04310.93
5.2.160.0070.04711.01
5.2.150.0170.04011.14
5.2.140.0200.06010.98
5.2.130.0230.04310.98
5.2.120.0130.04010.96
5.2.110.0030.04711.08
5.2.100.0130.03311.16
5.2.90.0100.04011.04
5.2.80.0200.03311.03
5.2.70.0230.03010.96
5.2.60.0200.03311.08
5.2.50.0270.03311.07
5.2.40.0070.04310.93
5.2.30.0130.03710.92
5.2.20.0170.03310.93
5.2.10.0100.04010.91
5.2.00.0100.04310.70
5.1.60.0130.03010.03
5.1.50.0130.03310.04
5.1.40.0200.0239.85
5.1.30.0070.03310.29
5.1.20.0100.03310.27
5.1.10.0130.03010.05
5.1.00.0130.03310.04
5.0.50.0100.0338.47
5.0.40.0070.0278.33
5.0.30.0070.0438.15
5.0.20.0100.0238.08
5.0.10.0030.0308.11
5.0.00.0100.0378.19
4.4.90.0030.0235.84
4.4.80.0030.0235.84
4.4.70.0100.0175.88
4.4.60.0070.0205.75
4.4.50.0000.0275.83
4.4.40.0030.0375.81
4.4.30.0170.0205.89
4.4.20.0070.0205.90
4.4.10.0070.0205.88
4.4.00.0070.0305.93
4.3.110.0070.0205.68
4.3.100.0070.0205.79
4.3.90.0000.0235.75
4.3.80.0000.0375.80
4.3.70.0030.0205.63
4.3.60.0100.0175.75
4.3.50.0030.0305.66
4.3.40.0070.0335.64
4.3.30.0030.0234.52
4.3.20.0030.0234.50
4.3.10.0000.0234.48
4.3.00.0000.0337.27