3v4l.org

run code in 300+ PHP versions simultaneously
<?php function timezoneExhibitsDST($tzId) { $tz = new DateTimeZone($tzId); $date = new DateTime("now",$tz); $trans = $tz->getTransitions(); foreach ($trans as $k => $t) if ($t["ts"] > $date->format('U')) { 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.40.0130.00319.05
8.3.30.0160.00619.04
8.3.20.0120.00320.33
8.3.10.0160.00323.55
8.3.00.0070.01122.21
8.2.170.0120.00322.96
8.2.160.0070.00722.07
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00819.24
8.2.120.0070.01126.35
8.2.110.0120.00622.25
8.2.100.0060.00618.09
8.2.90.0050.00319.53
8.2.80.0040.00418.05
8.2.70.0000.00818.00
8.2.60.0060.00318.29
8.2.50.0040.00418.18
8.2.40.0030.00520.56
8.2.30.0080.00019.52
8.2.20.0040.00418.23
8.2.10.0080.00018.32
8.2.00.0040.00418.35
8.1.270.0040.00422.39
8.1.260.0130.00626.35
8.1.250.0060.00328.09
8.1.240.0060.00321.26
8.1.230.0100.00319.35
8.1.220.0000.00818.16
8.1.210.0060.00318.77
8.1.200.0070.00417.72
8.1.190.0050.00317.85
8.1.180.0000.00818.10
8.1.170.0040.00418.77
8.1.160.0000.00719.21
8.1.150.0040.00419.17
8.1.140.0040.00419.73
8.1.130.0000.00719.14
8.1.120.0040.00417.89
8.1.110.0040.00417.82
8.1.100.0040.00417.73
8.1.90.0000.00817.80
8.1.80.0040.00417.71
8.1.70.0000.00717.68
8.1.60.0040.00417.86
8.1.50.0000.00917.84
8.1.40.0050.00317.82
8.1.30.0120.00017.98
8.1.20.0000.00817.96
8.1.10.0030.00617.79
8.1.00.0030.00517.80
8.0.300.0000.00820.41
8.0.290.0000.00817.00
8.0.280.0080.00018.79
8.0.270.0000.00717.41
8.0.260.0060.00317.16
8.0.250.0070.00017.26
8.0.240.0050.00217.36
8.0.230.0000.00717.27
8.0.220.0030.00317.28
8.0.210.0070.00017.32
8.0.200.0030.00317.36
8.0.190.0090.00017.31
8.0.180.0030.00517.32
8.0.170.0050.00217.32
8.0.160.0000.00717.16
8.0.150.0070.00017.20
8.0.140.0050.00217.25
8.0.130.0070.00013.65
8.0.120.0040.00417.12
8.0.110.0040.00517.22
8.0.100.0000.00917.11
8.0.90.0000.00817.13
8.0.80.0100.01317.21
8.0.70.0060.00317.28
8.0.60.0000.00817.25
8.0.50.0060.00317.23
8.0.30.0120.01017.31
8.0.20.0120.00817.44
8.0.10.0030.00717.27
8.0.00.0110.00717.12
7.4.330.0050.00015.55
7.4.320.0070.00016.91
7.4.300.0030.00316.80
7.4.290.0000.00716.80
7.4.280.0040.00416.88
7.4.270.0000.00816.82
7.4.260.0070.00016.87
7.4.250.0040.00416.77
7.4.240.0030.00516.72
7.4.230.0040.00316.72
7.4.220.0140.00916.80
7.4.210.0080.00816.85
7.4.200.0040.00416.80
7.4.160.0040.01216.87
7.4.150.0180.00917.40
7.4.140.0080.01517.86
7.4.130.0210.00016.74
7.4.120.0100.01016.85
7.3.330.0040.00413.47
7.3.320.0030.00313.50
7.3.310.0000.00916.66
7.3.300.0000.00716.52
7.3.290.0030.00516.67
7.3.280.0090.00916.63
7.3.270.0070.01117.40
7.3.260.0150.00716.87
7.3.250.0150.00516.77
7.3.240.0110.01016.84

preferences:
49.68 ms | 400 KiB | 5 Q