3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((new \DateTimeImmutable('2014-1-1 00:00:00'))->modify('+1 month -7 days'));
based on bM7ac

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.00819.45
7.1.100.0030.01218.20
7.1.70.0030.00617.32
7.1.60.0140.01119.50
7.1.50.0070.01416.98
7.1.00.0030.07722.30
7.0.200.0240.00714.49
7.0.140.0100.04722.23
7.0.60.0030.08720.03
7.0.50.0000.05317.82
7.0.40.0130.07020.04
7.0.30.0570.06720.20
7.0.20.0230.04320.13
7.0.10.0170.07320.12
7.0.00.0070.06720.08
5.6.280.0030.07321.07
5.6.210.0100.05720.47
5.6.200.0070.04018.23
5.6.190.0100.08020.35
5.6.180.0330.07020.61
5.6.170.0200.04320.52
5.6.160.0030.06720.33
5.6.150.0100.07718.18
5.6.140.0070.06718.07
5.6.130.0100.05318.11
5.6.120.0130.07721.11
5.6.110.0100.07721.00
5.6.100.0030.04021.13
5.6.90.0030.07020.95
5.6.80.0070.04720.28
5.6.70.0300.06020.49
5.5.350.0300.07320.40
5.5.340.0070.04318.03
5.5.330.0030.06020.29
5.5.320.0070.05720.24
5.5.310.0230.06320.29
5.5.300.0300.05717.90
5.5.290.0100.07317.98
5.5.280.0030.07020.90
5.5.270.0070.04720.76
5.5.260.0030.07320.72
5.5.250.0070.07320.79
5.5.240.0270.08020.35
5.4.450.0530.05719.10
5.4.440.0100.07019.29
5.4.430.0800.05319.41
5.4.420.0800.06319.31
5.4.410.0070.07018.97
5.4.400.0100.06718.81
5.4.390.0300.04718.53
5.4.380.0230.07018.76
5.4.370.0030.08318.61
5.4.360.0130.07318.66
5.4.350.0230.06718.56
5.4.340.0270.06318.72
5.4.320.0200.07018.77
5.4.310.0200.07018.56
5.4.300.0300.05718.74
5.4.290.0130.05718.72
5.4.280.0100.07718.67
5.4.270.0070.06718.62
5.4.260.0200.05318.67
5.4.250.0070.07018.69
5.4.240.0300.04318.73
5.4.230.0170.05718.77
5.4.220.0200.05718.64
5.4.210.0100.06018.66
5.4.200.0200.05316.64
5.4.190.0230.04718.65
5.4.180.0200.07318.42
5.4.170.0330.04318.64
5.4.160.0270.04318.63
5.4.150.0070.06318.48
5.4.140.0130.06316.29
5.4.130.0170.05316.28
5.4.120.0230.04716.08
5.4.110.0200.05016.05
5.4.100.0200.05716.04
5.4.90.0270.04716.08
5.4.80.0170.05316.18
5.4.70.0230.04716.14
5.4.60.0270.06016.14
5.4.50.0230.04716.12
5.4.40.0230.05316.04
5.4.30.0270.04716.13
5.4.20.0230.08016.00
5.4.10.0200.05716.26
5.4.00.0130.05015.71
5.3.290.0100.06014.60
5.3.280.0100.06314.56
5.3.270.0300.05314.56
5.3.260.0270.04714.76
5.3.250.0230.04714.56
5.3.240.0230.05314.58
5.3.230.0200.06714.57
5.3.220.0170.07314.54
5.3.210.0200.07314.63
5.3.200.0100.06714.60
5.3.190.0230.05014.54
5.3.180.0170.05714.64
5.3.170.0130.05314.49
5.3.160.0130.06014.66
5.3.150.0130.05714.64
5.3.140.0330.05714.63
5.3.130.0200.06714.61
5.3.120.0230.06714.54
5.3.110.0230.06314.62
5.3.100.0130.06714.00
5.3.90.0200.05014.01
5.3.80.0130.06014.00
5.3.70.0100.05713.99
5.3.60.0130.05714.10
5.3.50.0070.07313.92
5.3.40.0300.04313.96
5.3.30.0070.06013.89
5.3.20.0200.05313.76
5.3.10.0130.05313.66
5.3.00.0070.07713.61
5.2.170.0100.04711.27
5.2.160.0170.04011.16
5.2.150.0070.04711.11
5.2.140.0170.04711.17
5.2.130.0200.04011.13
5.2.120.0100.04711.10
5.2.110.0130.04311.05
5.2.100.0100.04711.16
5.2.90.0130.05011.06
5.2.80.0100.04711.15
5.2.70.0130.04311.14
5.2.60.0130.04010.97
5.2.50.0130.05711.07
5.2.40.0100.04310.95
5.2.30.0170.03710.97
5.2.20.0170.05710.99
5.2.10.0330.04711.00
5.2.00.0100.05710.76
5.1.60.0130.04310.01
5.1.50.0130.03310.02
5.1.40.0130.03310.07
5.1.30.0070.05010.49
5.1.20.0070.04310.35
5.1.10.0130.03710.14
5.1.00.0070.04710.08
5.0.50.0170.0308.61
5.0.40.0070.0338.43
5.0.30.0130.0438.29
5.0.20.0100.0278.21
5.0.10.0030.0338.20
5.0.00.0200.0438.18
4.4.90.0070.0235.91
4.4.80.0070.0275.92
4.4.70.0100.0205.88
4.4.60.0030.0235.92
4.4.50.0030.0275.86
4.4.40.0030.0405.88
4.4.30.0000.0305.93
4.4.20.0030.0275.96
4.4.10.0070.0235.97
4.4.00.0070.0335.90
4.3.110.0100.0175.84
4.3.100.0100.0175.84
4.3.90.0070.0275.80
4.3.80.0030.0375.78
4.3.70.0070.0235.87
4.3.60.0030.0235.88
4.3.50.0030.0235.82
4.3.40.0130.0305.79
4.3.30.0070.0205.35
4.3.20.0130.0135.35
4.3.10.0000.0275.35
4.3.00.0170.0236.67