3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function e($d) { echo $d->format("Y-m-d H:i:s O"), "\n"; } $irk = new DateTimeZone("Asia/Irkutsk"); $a = new DateTime("2009-10-25 01:30:00", $irk); e($a); $a->modify("+1 hour"); e($a); $a->modify("+1 hour"); e($a); $a->modify("+1 hour"); e($a);
based on qZiRE

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.10.0470.00416.11
7.3.00.0200.00816.46
7.2.130.0150.00016.56
7.2.120.0280.00416.63
7.2.110.0290.00616.88
7.2.100.0080.01116.88
7.2.90.0170.01017.08
7.2.80.0210.01016.56
7.2.70.0400.00016.38
7.2.60.0300.01416.97
7.2.50.0790.00316.76
7.2.40.0360.00817.10
7.2.30.0290.01016.63
7.2.20.0290.01316.69
7.2.10.0110.00716.84
7.2.00.0160.00718.31
7.1.250.0150.00415.75
7.1.100.0040.01118.23
7.1.70.0040.00817.21
7.1.60.0040.02119.50
7.1.50.0100.00317.10
7.1.00.0130.06322.56
7.0.200.0260.00316.50
7.0.140.0000.07722.00
7.0.60.0030.05319.94
7.0.50.0030.04717.84
7.0.40.0070.04720.10
7.0.30.0330.06020.20
7.0.20.0200.05320.06
7.0.10.0270.05720.34
7.0.00.0100.08720.23
5.6.280.0100.06721.10
5.6.210.0230.06320.63
5.6.200.0070.03718.18
5.6.190.0030.06320.33
5.6.180.0130.04720.65
5.6.170.0230.05020.47
5.6.160.0000.06020.51
5.6.150.0100.05018.18
5.6.140.0030.08318.15
5.6.130.0070.06018.12
5.6.120.0070.07721.05
5.6.110.0070.04320.99
5.6.100.0070.04021.12
5.6.90.0130.07021.01
5.6.80.0000.08320.53
5.5.350.0170.07720.38
5.5.340.0030.04017.97
5.5.330.0100.08020.27
5.5.320.0000.08720.32
5.5.310.0330.05020.37
5.5.300.0070.06017.99
5.5.290.0070.08017.99
5.5.280.0100.05020.88
5.5.270.0000.05020.87
5.5.260.0100.06320.88
5.5.250.0070.06720.46
5.5.240.0000.04720.29
5.4.450.0600.05719.62
5.4.440.0930.06319.44
5.4.430.0170.05019.60
5.4.420.0030.06019.59
5.4.410.1000.05019.04
5.4.400.0370.05318.76
5.4.390.0370.05318.75
5.4.380.0370.06318.47
5.4.370.0430.06018.53
5.4.360.0370.05318.69
5.4.350.0470.05018.79
5.4.340.0370.08018.48
5.4.320.0370.06018.78
5.4.310.0400.05018.57
5.4.300.0330.06318.50
5.4.290.0300.05718.71
5.4.280.0300.06018.76
5.4.270.0300.05718.63
5.4.260.0400.05018.62
5.4.250.0330.05318.55
5.4.240.0430.04318.61
5.4.230.0330.05018.58
5.4.220.0300.06018.55
5.4.210.0200.07018.77
5.4.200.0300.05316.58
5.4.190.0370.05018.73
5.4.180.0330.06018.57
5.4.170.0530.05718.79
5.4.160.0400.05318.77
5.4.150.0330.05318.67
5.4.140.0400.04716.27
5.4.130.0330.05016.30
5.4.120.0430.05016.18
5.4.110.0270.05716.25
5.4.100.0400.04316.22
5.4.90.0400.04316.26
5.4.80.0430.04716.15
5.4.70.0300.05316.36
5.4.60.0400.04316.27
5.4.50.0300.05316.27
5.4.40.0400.04316.26
5.4.30.0430.04316.28
5.4.20.0430.04716.23
5.4.10.0430.05016.41
5.4.00.0500.06015.72
5.3.290.0400.06014.80
5.3.280.0470.04714.81
5.3.270.0300.05714.82
5.3.260.0300.05714.65
5.3.250.0330.05714.58
5.3.240.0400.05014.73
5.3.230.0530.05714.70
5.3.220.0370.05314.77
5.3.210.0400.07714.73
5.3.200.0430.06714.67
5.3.190.0300.05314.59
5.3.180.0430.04714.59
5.3.170.0370.05014.54
5.3.160.0270.05714.76
5.3.150.0400.05314.59
5.3.140.0370.05314.65
5.3.130.0370.05314.59
5.3.120.0370.05714.77
5.3.110.0230.07014.77
5.3.100.0330.05314.10
5.3.90.0330.05714.05
5.3.80.0330.05314.02
5.3.70.0300.05014.02
5.3.60.0430.04014.06
5.3.50.0430.05714.06
5.3.40.0330.05014.05
5.3.30.0300.05313.96
5.3.20.0400.05013.75
5.3.10.0430.05313.71
5.3.00.0300.05313.74
5.2.170.0270.04011.18
5.2.160.0270.03711.27
5.2.150.0300.04311.26
5.2.140.0300.05011.25
5.2.130.0300.04311.12
5.2.120.0270.05011.12
5.2.110.0230.05011.30
5.2.100.0270.04311.19
5.2.90.0270.04011.13
5.2.80.0230.04311.14
5.2.70.0200.05011.15
5.2.60.0370.04311.05
5.2.50.0300.04311.12
5.2.40.0270.03711.05
5.2.30.0270.03311.01
5.2.20.0200.04311.18
5.2.10.0100.05010.94
5.2.00.0230.04010.73
5.1.60.0230.03010.04
5.1.50.0270.04010.04
5.1.40.0270.0309.99
5.1.30.0230.04310.39
5.1.20.0200.05310.45
5.1.10.0270.03310.14
5.1.00.0230.03310.11
5.0.50.0270.0378.65
5.0.40.0170.0238.46
5.0.30.0200.0408.26
5.0.20.0170.0338.22
5.0.10.0170.0278.29
5.0.00.0070.0608.35
4.4.90.0170.0235.98
4.4.80.0170.0275.91
4.4.70.0130.0305.88
4.4.60.0130.0175.90
4.4.50.0070.0275.89
4.4.40.0100.0335.89
4.4.30.0130.0205.92
4.4.20.0070.0235.96
4.4.10.0130.0205.93
4.4.00.0130.0405.91
4.3.110.0100.0235.90
4.3.100.0100.0205.85
4.3.90.0030.0275.90
4.3.80.0100.0375.89
4.3.70.0070.0275.82
4.3.60.0100.0305.79
4.3.50.0130.0305.80
4.3.40.0130.0335.83
4.3.30.0070.0204.67
4.3.20.0030.0234.54
4.3.10.0030.0234.49
4.3.00.0130.0206.68