3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set("Europe/Vilnius"); $datetime1 = new DateTime('1970-01-01 11:55:00'); var_dump($datetime1->getOffset()); var_dump($datetime1->getTimestamp()); $datetime2 = new DateTime('2014-01-29 11:55:00'); var_dump($datetime2->getOffset()); var_dump($datetime2->getTimestamp()); ?>

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.0000.01619.06
7.1.100.0030.00918.11
7.1.70.0090.00017.17
7.1.60.0000.01517.28
7.1.50.0130.01316.90
7.1.00.0000.07022.36
7.0.200.0040.00416.78
7.0.140.0030.07322.00
7.0.100.0070.08020.02
7.0.90.0030.08019.86
7.0.80.0100.07719.84
7.0.70.0070.08319.98
7.0.60.0030.08019.85
7.0.50.0070.08020.30
7.0.40.0100.07720.00
7.0.30.0100.08320.00
7.0.20.0070.05320.05
7.0.10.0100.07319.96
7.0.00.0130.08020.09
5.6.280.0030.07321.07
5.6.250.0070.08720.54
5.6.240.0070.08720.48
5.6.230.0170.08020.64
5.6.220.0200.07020.66
5.6.210.0170.07320.54
5.6.200.0100.07721.06
5.6.190.0070.06021.13
5.6.180.0070.08321.00
5.6.170.0130.08021.00
5.6.160.0130.07321.04
5.6.150.0070.06321.04
5.6.140.0230.06720.98
5.6.130.0100.07021.08
5.6.120.0070.08320.97
5.6.110.0030.08720.99
5.6.100.0070.05020.96
5.6.90.0030.08720.89
5.6.80.0030.07720.39
5.6.70.0100.07320.39
5.6.60.0070.08020.39
5.6.50.0030.08020.36
5.6.40.0170.07020.22
5.6.30.0100.07720.36
5.6.20.0130.04320.34
5.6.10.0070.07320.26
5.6.00.0000.05720.34
5.5.380.0130.06320.47
5.5.370.0070.07720.37
5.5.360.0070.08720.36
5.5.350.0000.09020.34
5.5.340.0130.04320.75
5.5.330.0100.07020.85
5.5.320.0200.06320.59
5.5.310.0070.08720.82
5.5.300.0100.08320.83
5.5.290.0000.09020.87
5.5.280.0030.08020.59
5.5.270.0030.09020.82
5.5.260.0070.06720.83
5.5.250.0130.07720.64
5.5.240.0030.05320.21
5.5.230.0000.08320.19
5.5.220.0070.08020.25
5.5.210.0130.07720.15
5.5.200.0070.06020.13
5.5.190.0030.07720.19
5.5.180.0000.08320.21
5.5.160.0070.04720.09
5.5.150.0170.07320.06
5.5.140.0100.07320.16
5.5.130.0170.07320.08
5.5.120.0100.06720.12
5.5.110.0070.08020.03
5.5.100.0170.06320.02
5.5.90.0070.07320.02
5.5.80.0100.07319.91
5.5.70.0030.08720.06
5.5.60.0070.07720.01
5.5.50.0100.07320.03
5.5.40.0100.04320.04
5.5.30.0200.06320.00
5.5.20.0130.07320.00
5.5.10.0070.04719.95
5.5.00.0130.07319.94
5.4.450.0000.09019.28
5.4.440.0130.07719.39
5.4.430.0230.06019.42
5.4.420.0070.04719.30
5.4.410.0100.07719.33
5.4.400.0070.04319.10
5.4.390.0170.03719.15
5.4.380.0100.07318.81
5.4.370.0130.07018.79
5.4.360.0030.08019.04
5.4.350.0070.06718.90
5.4.340.0100.07019.06
5.4.320.0070.06319.25
5.4.310.0070.07318.82
5.4.300.0230.05719.20
5.4.290.0070.07318.95
5.4.280.0070.06719.07
5.4.270.0030.08318.95
5.4.260.0000.08318.79
5.4.250.0100.06719.14
5.4.240.0030.08019.02
5.4.230.0030.07718.78
5.4.220.0100.06019.02
5.4.210.0130.06719.04
5.4.200.0100.07019.13
5.4.190.0070.07719.02
5.4.180.0200.05318.97
5.4.170.0070.08019.02
5.4.160.0130.06319.07
5.4.150.0100.07318.93
5.4.140.0070.06716.14
5.4.130.0100.06016.33
5.4.120.0030.05316.34
5.4.110.0070.07316.29
5.4.100.0000.04716.32
5.4.90.0070.04316.26
5.4.80.0030.07316.39
5.4.70.0100.07316.30
5.4.60.0000.04716.24
5.4.50.0070.05316.28
5.4.40.0170.06316.33
5.4.30.0070.07316.15
5.4.20.0200.06316.39
5.4.10.0130.05716.36
5.4.00.0030.07315.77
5.3.290.0030.08314.63
5.3.280.0100.07314.55
5.3.270.0030.08314.62
5.3.260.0030.08014.47
5.3.250.0070.07714.45
5.3.240.0170.06714.56
5.3.230.0070.06314.51
5.3.220.0070.07714.53
5.3.210.0000.05014.55
5.3.200.0100.07314.55
5.3.190.0000.05314.57
5.3.180.0030.08014.57
5.3.170.0000.04014.54
5.3.160.0170.06314.55
5.3.150.0000.07314.39
5.3.140.0070.06314.41
5.3.130.0070.07014.53
5.3.120.0100.06714.37
5.3.110.0130.06714.51
5.3.100.0130.06013.98
5.3.90.0100.07313.87
5.3.80.0070.07013.97
5.3.70.0070.04014.00
5.3.60.0130.06713.86
5.3.50.0170.06313.92
5.3.40.0030.07713.88
5.3.30.0030.05013.77
5.3.20.0100.07013.55
5.3.10.0030.07013.51
5.3.00.0030.08013.49
5.2.170.0030.06010.99
5.2.160.0000.06010.98
5.2.150.0000.06310.99
5.2.140.0070.06311.06
5.2.130.0070.03011.07
5.2.120.0070.06311.01
5.2.110.0030.06711.09
5.2.100.0070.05010.95
5.2.90.0000.04711.16
5.2.80.0100.05710.96
5.2.70.0070.03711.01
5.2.60.0070.05710.90
5.2.50.0030.06010.94
5.2.40.0000.06711.05
5.2.30.0030.06310.81
5.2.20.0070.04010.95
5.2.10.0070.06010.93
5.2.00.0000.05310.74
5.1.60.0030.0539.83
5.1.50.0130.0479.99
5.1.40.0000.0579.99
5.1.30.0100.05010.34
5.1.20.0070.03310.44
5.1.10.0070.0539.91
5.1.00.0070.0509.94
5.0.50.0000.0478.56
5.0.40.0070.0408.48
5.0.30.0030.0638.29
5.0.20.0070.0408.03
5.0.10.0030.0438.25
5.0.00.0000.0678.16
4.4.90.0000.0376.93
4.4.80.0030.0336.93
4.4.70.0070.0276.93
4.4.60.0030.0376.93
4.4.50.0030.0236.93
4.4.40.0000.0576.93
4.4.30.0030.0376.93
4.4.20.0000.0376.93
4.4.10.0000.0376.93
4.4.00.0000.0376.93
4.3.110.0030.0336.93
4.3.100.0070.0306.93
4.3.90.0000.0336.93
4.3.80.0030.0506.93
4.3.70.0070.0306.93
4.3.60.0000.0336.93
4.3.50.0030.0306.93
4.3.40.0000.0506.93
4.3.30.0000.0376.93
4.3.20.0100.0276.93
4.3.10.0000.0376.93
4.3.00.0130.0236.93