3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_utc = new DateTime('1895-01-01 05:17:32 UTC'); for($i = 1890; $i <= 1900 ; $i++) { $date = new DateTime( $i. '-01-01T00:00', new DateTimeZone('America/Toronto')); echo $date->format('Y-m-d H:i:s'), PHP_EOL; if($i == 1895) $utc_local = $date->format('U') . PHP_EOL; } if(isset($utc_local)) var_dump($date_utc->format('U') . ' => ' . $utc_local, $date->getTimezone()->getTransitions($utc_local, $utc_local));

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.3.60.0120.00616.50
8.3.50.0090.00618.29
8.3.40.0120.00318.96
8.3.30.0040.01118.84
8.3.20.0070.00024.18
8.3.10.0050.00324.66
8.3.00.0050.00326.16
8.2.180.0130.00725.92
8.2.170.0180.00618.91
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00626.16
8.2.110.0060.00321.12
8.2.100.0080.00417.91
8.2.90.0050.00317.97
8.2.80.0050.00319.12
8.2.70.0040.00417.75
8.2.60.0130.00018.02
8.2.50.0030.00618.07
8.2.40.0050.00319.88
8.2.30.0050.00318.00
8.2.20.0040.00419.31
8.2.10.0040.00417.86
8.2.00.0030.00619.31
8.1.280.0140.00025.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0060.00620.88
8.1.220.0060.00317.77
8.1.210.0040.00418.88
8.1.200.0030.00617.48
8.1.190.0030.00617.36
8.1.180.0040.00418.10
8.1.170.0000.00818.78
8.1.160.0040.00418.95
8.1.150.0000.00718.79
8.1.140.0040.00417.56
8.1.130.0000.00818.99
8.1.120.0030.00517.56
8.1.110.0020.00517.62
8.1.100.0070.00017.57
8.1.90.0040.00417.66
8.1.80.0060.00317.65
8.1.70.0040.00417.49
8.1.60.0040.00717.63
8.1.50.0070.00617.60
8.1.40.0090.00217.53
8.1.30.0070.00517.74
8.1.20.0070.00517.68
8.1.10.0060.00517.70
8.1.00.0070.00517.58
8.0.300.0050.00520.03
8.0.290.0080.00016.88
8.0.280.0050.00518.50
8.0.270.0040.00418.19
8.0.260.0070.00018.53
8.0.250.0070.00017.18
8.0.240.0030.00317.16
8.0.230.0030.00317.02
8.0.220.0040.00417.07
8.0.210.0000.00717.02
8.0.200.0050.00317.02
8.0.190.0070.00317.08
8.0.180.0040.00816.96
8.0.170.0030.00717.04
8.0.160.0040.00717.06
8.0.150.0060.00516.97
8.0.140.0060.00516.91
8.0.130.0030.00715.81
8.0.120.0090.00415.75
8.0.110.0080.00515.57
8.0.100.0120.00115.69
8.0.90.0070.00615.72
8.0.80.0120.00115.74
8.0.70.0080.00515.70
8.0.60.0040.00915.73
8.0.50.0060.00615.70
8.0.30.0100.00415.77
8.0.20.0080.00515.80
8.0.10.0150.00015.84
8.0.00.0070.00415.90
7.4.330.0000.00515.55
7.4.320.0050.00316.63
7.4.300.0060.00016.67
7.4.290.0080.00516.62
7.4.280.0050.00616.67
7.4.270.0060.00516.59
7.4.260.0050.00415.44
7.4.250.0130.00215.52
7.4.240.0070.00715.38
7.4.230.0090.00615.43
7.4.220.0110.00215.54
7.4.210.0070.00515.51
7.4.200.0080.00415.53
7.4.190.0080.00615.44
7.4.180.0070.00515.50
7.4.160.0090.00515.38
7.4.150.0110.00215.35
7.4.140.0100.00315.44
7.4.130.0060.00615.35
7.4.120.0080.00415.26
7.4.110.0080.00315.24
7.4.100.0040.00715.38
7.4.90.0050.00715.33
7.4.80.0080.00415.38
7.4.70.0070.00415.28
7.4.60.0070.00415.35
7.4.50.0060.00315.35
7.4.40.0070.00515.16
7.4.30.0060.00515.41
7.4.20.0070.00415.07
7.4.10.0090.00215.31
7.4.00.0080.00415.25
7.3.330.0080.00516.61
7.3.320.0100.00515.31
7.3.310.0090.00515.46
7.3.300.0080.00815.42
7.3.290.0100.00515.45
7.3.280.0100.00715.43
7.3.270.0110.00515.34
7.3.260.0100.00415.45
7.3.250.0120.00215.44
7.3.240.0080.00615.38
7.3.230.0060.00815.47
7.3.220.0120.00215.28
7.3.210.0130.00115.37
7.3.200.0090.00415.38
7.3.190.0110.00415.31
7.3.180.0090.00515.38
7.3.170.0080.00515.28
7.3.160.0090.00415.25
7.3.150.0080.00615.34
7.3.140.0080.00615.31
7.3.130.0070.00615.39
7.3.120.0120.00215.49
7.3.110.0110.00415.35
7.3.100.0060.00815.34
7.3.90.0090.00415.47
7.3.80.0100.00315.29
7.3.70.0050.00815.46
7.3.60.0090.00515.33
7.3.50.0100.00315.31
7.3.40.0070.00515.48
7.3.30.0100.00415.50
7.3.20.0100.00317.13
7.3.10.0080.00617.01
7.3.00.0100.00417.05

preferences:
64.28 ms | 401 KiB | 5 Q