3v4l.org

run code in 300+ PHP versions simultaneously
<?php function timezoneExhibitsDST($tzId) { $tz = new DateTimeZone($tzId); $date = new DateTime("now",$tz); var_dump($date->format('c')); $trans = $tz->getTransitions(); foreach ($trans as $k => $t) if ($t["ts"] > $date->format('U')) { print_r($t); return $trans[$k-1]['isdst']; } } var_dump(timezoneExhibitsDST("Europe/London"));

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.70.0040.01417.11
8.3.60.0110.00717.13
8.3.50.0120.00516.71
8.3.40.0160.00618.88
8.3.30.0070.01018.76
8.3.20.0130.00020.47
8.3.10.0040.00423.33
8.3.00.0040.00422.04
8.2.180.0160.00318.47
8.2.170.0090.00622.96
8.2.160.0100.01019.53
8.2.150.0130.00324.18
8.2.140.0000.01424.66
8.2.130.0040.00421.00
8.2.120.0070.01326.35
8.2.110.0060.00319.47
8.2.100.0100.00318.03
8.2.90.0000.00918.22
8.2.80.0080.00019.19
8.2.70.0000.00918.00
8.2.60.0030.00618.30
8.2.50.0030.00518.10
8.2.40.0080.00020.72
8.2.30.0000.00821.08
8.2.20.0080.00018.26
8.2.10.0040.00418.26
8.2.00.0070.00018.36
8.1.280.0040.01525.92
8.1.270.0100.01022.34
8.1.260.0060.00326.35
8.1.250.0180.00028.09
8.1.240.0080.00422.33
8.1.230.0070.00421.13
8.1.220.0080.00018.02
8.1.210.0080.00019.16
8.1.200.0040.00717.72
8.1.190.0040.00417.61
8.1.180.0030.00518.10
8.1.170.0000.00918.94
8.1.160.0000.00719.21
8.1.150.0030.00519.20
8.1.140.0040.00419.71
8.1.130.0000.00719.11
8.1.120.0030.00617.85
8.1.110.0080.00017.86
8.1.100.0000.00817.76
8.1.90.0050.00317.82
8.1.80.0000.00717.83
8.1.70.0000.00717.90
8.1.60.0000.00817.92
8.1.50.0040.00417.91
8.1.40.0050.00317.81
8.1.30.0030.00517.84
8.1.20.0050.00318.00
8.1.10.0040.00417.86
8.1.00.0040.00417.67
8.0.300.0000.00820.13
8.0.290.0040.00417.13
8.0.280.0030.00318.67
8.0.270.0070.00017.51
8.0.260.0100.00017.09
8.0.250.0000.00717.25
8.0.240.0000.00817.28
8.0.230.0000.00717.31
8.0.220.0040.00417.30
8.0.210.0030.00317.25
8.0.200.0070.00017.28
8.0.190.0050.00517.22
8.0.180.0050.00317.28
8.0.170.0040.00417.31
8.0.160.0080.00017.36
8.0.150.0040.00417.13
8.0.140.0000.00717.25
8.0.130.0000.00613.70
8.0.120.0040.00417.26
8.0.110.0040.00417.32
8.0.100.0000.00717.06
8.0.90.0040.00417.23
8.0.80.0060.01217.28
8.0.70.0050.00317.11
8.0.60.0030.00517.19
8.0.50.0030.00517.34
8.0.30.0130.00917.49
8.0.20.0110.00917.46
8.0.10.0060.00317.45
8.0.00.0160.00317.07
7.4.330.0030.00315.55
7.4.320.0070.00016.83
7.4.300.0030.00316.72
7.4.290.0040.00416.82
7.4.280.0000.00716.84
7.4.270.0030.00616.75
7.4.260.0030.00316.86
7.4.250.0050.00216.89
7.4.240.0040.00416.86
7.4.230.0050.00317.04
7.4.220.0150.00916.87
7.4.210.0110.00616.79
7.4.200.0000.00717.02
7.4.160.0100.00816.74
7.4.150.0090.01117.40
7.4.140.0130.01217.86
7.4.130.0140.01016.68
7.4.120.0090.01216.89
7.3.330.0000.00813.60
7.3.320.0060.00013.53
7.3.310.0060.00316.59
7.3.300.0070.00016.74
7.3.290.0030.00416.73
7.3.280.0090.01016.66
7.3.270.0060.01317.40
7.3.260.0050.01516.76
7.3.250.0080.01216.82
7.3.240.0180.00516.80

preferences:
91.22 ms | 401 KiB | 5 Q