3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d1=new DateTimeImmutable('03/08/2015 1:59am GMT-05:00'); echo $d1->format(DateTime::ISO8601)."\n"; //$d2 = $d1->modify('+0 hours'); echo $d2->format(DateTime::ISO8601)."\n"; echo '--\n'; $d1=new DateTimeImmutable('03/08/2015 1:59am GMT-05:00'); echo $d1->format(DateTime::ISO8601)."\n"; $d2 = clone $d1; echo $d2->format(DateTime::ISO8601)."\n";
based on hS2vu

Here you find the average performance (time & memory) of each version. A greyed 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.0000.01219.39
7.1.100.0080.00418.01
7.1.70.0040.01317.22
7.1.60.0100.01320.03
7.1.50.0130.01317.09
7.1.00.0070.07322.37
7.0.200.0180.00414.97
7.0.60.0170.06719.95
7.0.50.0030.04317.91
7.0.40.0070.05719.96
7.0.30.0370.04320.21
7.0.20.0300.05720.11
7.0.10.0270.06320.04
7.0.00.0030.06720.19
5.6.280.0030.03721.00
5.6.210.0030.04720.56
5.6.200.0070.08018.20
5.6.190.0070.09020.61
5.6.180.0230.04720.61
5.6.170.0300.07320.43
5.6.160.0070.06720.48
5.6.150.0000.05318.12
5.6.140.0030.04318.18
5.6.130.0070.08018.22
5.6.120.0170.04321.04
5.6.110.0200.07020.89
5.6.100.0030.08320.86
5.6.90.0230.06721.00
5.6.80.0100.08020.40
5.6.70.0370.06020.36
5.5.350.0000.08720.28
5.5.340.0000.06717.95
5.5.330.0030.04320.43
5.5.320.0300.07320.20
5.5.310.0330.07320.30
5.5.300.0100.07317.98
5.5.290.0030.05318.02
5.5.280.0170.07320.96
5.5.270.0170.04320.75
5.5.260.0100.07020.89
5.5.250.0130.06020.46
5.5.240.0000.05720.27
5.4.450.0130.05719.10
5.4.440.0170.05319.57
5.4.430.0230.05319.53
5.4.420.0070.06019.57
5.4.410.0170.05018.96
5.4.400.0170.05019.21
5.4.390.0100.06019.22
5.4.380.0130.05319.04
5.4.370.0170.05019.16
5.4.360.0270.04319.18
5.4.350.0200.04719.21
5.4.340.0130.05318.79
5.4.320.0030.06318.95
5.4.310.0200.05018.99
5.4.300.0170.05019.18
5.4.290.0100.06718.76
5.4.280.0200.05318.94
5.4.270.0100.06019.13
5.4.260.0170.05018.94
5.4.250.0270.04018.75
5.4.240.0100.06018.98
5.4.230.0070.06018.98
5.4.220.0170.05319.20
5.4.210.0130.05718.96
5.4.200.0100.05316.90
5.4.190.0270.04318.91
5.4.180.0100.05719.07
5.4.170.0230.05019.27
5.4.160.0230.04718.77
5.4.150.0200.05019.22
5.4.140.0100.05716.24
5.4.130.0170.04716.37
5.4.120.0100.06016.37
5.4.110.0200.04316.33
5.4.100.0230.04716.25
5.4.90.0130.05316.32
5.4.80.0130.05316.37
5.4.70.0230.04316.22
5.4.60.0030.03316.32
5.4.50.0030.06316.28
5.4.40.0030.05316.41
5.4.30.0300.06016.44
5.4.20.0330.06316.20
5.3.290.1100.04314.60
5.3.280.0830.03014.54
5.3.270.0700.03014.44
5.3.260.0730.04314.45
5.3.250.0600.04014.46
5.3.240.0400.04714.51
5.3.230.0470.04014.53
5.3.220.0330.04714.55
5.3.210.0900.02314.55
5.3.200.1230.02714.41
5.3.190.0430.04314.42
5.3.180.1070.04014.51
5.3.170.1470.03314.51