3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = new DateTime("@1351382400"); var_dump($date1->format('c')); // Sun Oct 28 2012 00:00:00+00:00 var_dump($date1->getTimestamp()); //prints: 1351382400 $date1->setTimezone(new DateTimeZone("Europe/Stockholm")); var_dump($date1->format('U')); // prints: 1351382400 var_dump($date1->getTimestamp()); //prints: 1351386000
based on pts6t

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.0.30.0090.00817.32
8.0.20.0110.01117.40
8.0.00.0040.01516.70
7.4.150.0140.00617.40
7.4.140.0100.01017.86
7.4.130.0110.00716.62
7.4.120.0080.01116.59
7.4.110.0000.01616.47
7.4.100.0050.01416.67
7.4.90.0040.01416.59
7.4.80.0070.01419.39
7.4.70.0080.00816.89
7.4.60.0100.00716.63
7.4.50.0030.01016.79
7.4.40.0070.01016.39
7.4.30.0060.00916.28
7.4.00.0090.00715.08
7.3.270.0120.00617.40
7.3.260.0130.00816.43
7.3.250.0070.00916.53
7.3.240.0090.01116.54
7.3.230.0080.01116.80
7.3.210.0070.01016.70
7.3.200.0040.01719.39
7.3.190.0060.01216.36
7.3.180.0150.00316.60
7.3.170.0100.00716.29
7.3.160.0060.01216.52
7.3.120.0000.01915.14
7.3.110.0040.01114.76
7.3.100.0120.00315.05
7.3.90.0030.01414.87
7.3.80.0040.01114.93
7.3.70.0030.00614.82
7.3.60.0060.00614.88
7.3.50.0060.00615.07
7.3.40.0110.00315.00
7.3.30.0030.01214.92
7.3.20.0060.01216.48
7.3.10.0050.01016.69
7.3.00.0080.00916.59
7.2.330.0100.01316.61
7.2.320.0100.01416.71
7.2.310.0060.00916.94
7.2.300.0120.00616.60
7.2.290.0060.01116.45
7.2.250.0030.01415.27
7.2.240.0070.01414.89
7.2.230.0060.00615.02
7.2.220.0110.00015.40
7.2.210.0030.01014.82
7.2.200.0100.00715.18
7.2.190.0030.00614.91
7.2.180.0100.00715.23
7.2.170.0070.00315.26
7.2.130.0090.00617.16
7.2.120.0070.00716.95
7.2.110.0080.00616.89
7.2.100.0040.00717.06
7.2.90.0030.01017.18
7.2.80.0000.01217.06
7.2.70.0070.01017.18
7.2.60.0020.01017.03
7.2.50.0040.00817.04
7.2.40.0030.00616.89
7.2.30.0070.00716.96
7.2.20.0040.00717.11
7.2.10.0070.00416.66
7.2.00.0070.00717.09
7.1.330.0030.01315.75
7.1.320.0070.00715.88
7.1.310.0070.00715.66
7.1.300.0030.01015.74
7.1.290.0100.00315.55
7.1.280.0040.00415.69
7.1.270.0060.00915.71
7.1.260.0040.01515.89
7.1.250.0040.00715.69
7.1.200.0060.00615.89
7.1.70.0040.00717.25
7.1.60.0030.01017.01
7.1.00.1100.08020.67
7.0.200.0130.00316.74
7.0.140.1130.07720.31
7.0.130.1400.04720.31
7.0.120.1470.04720.34
7.0.110.0930.05020.28
7.0.100.0870.06720.34
7.0.90.1270.06020.35
7.0.80.1070.06020.36
7.0.70.0770.06720.19
7.0.60.0870.05320.09
7.0.50.0670.07020.33
7.0.40.0670.06020.40
7.0.30.0730.06020.34
7.0.20.1230.05020.34
7.0.10.0730.05020.16
7.0.00.0730.05720.36
5.6.290.0200.06720.87
5.6.280.0170.06021.10
5.6.270.0200.05721.09
5.6.260.0200.04720.92
5.6.250.0130.07320.86
5.6.240.0030.06721.13
5.6.230.0200.06720.96
5.6.220.0130.07020.94
5.6.210.0100.08720.89
5.6.200.0030.06320.80
5.6.190.0130.05321.02
5.6.180.0130.07320.82
5.6.170.0130.07020.88
5.6.160.0130.07020.74
5.6.150.0130.05720.82
5.6.140.0130.05320.86
5.6.130.0170.06320.99
5.6.120.0130.06720.81
5.6.110.0200.07021.05
5.6.100.0100.08020.95
5.6.90.0130.07020.86
5.6.80.0100.06720.12
5.6.70.0030.08320.39
5.6.60.0200.06720.41
5.6.50.0200.06320.41
5.6.40.0070.07020.41
5.6.30.0130.05320.31
5.6.20.0130.05320.13
5.6.10.0030.05720.43
5.6.00.0030.06320.40