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('O')); $trans = $tz->getTransitions(); foreach ($trans as $k => $t) if ($t["ts"] > $date->format('U')) { print_r($t); print_r($trans[$k-1]); 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.60.0190.00317.00
8.3.50.0060.00916.63
8.3.40.0040.01219.04
8.3.30.0130.00318.92
8.3.20.0030.00620.34
8.3.10.0050.00323.51
8.3.00.0070.00721.92
8.2.180.0150.00718.34
8.2.170.0160.00622.96
8.2.160.0140.00719.33
8.2.150.0080.00025.66
8.2.140.0040.01124.66
8.2.130.0030.00621.18
8.2.120.0000.00826.35
8.2.110.0030.00721.06
8.2.100.0080.00418.17
8.2.90.0030.00519.52
8.2.80.0040.00418.29
8.2.70.0080.00017.88
8.2.60.0000.00818.05
8.2.50.0040.00418.29
8.2.40.0040.00420.73
8.2.30.0030.00521.22
8.2.20.0080.00018.36
8.2.10.0030.00518.45
8.2.00.0080.00018.25
8.1.280.0040.01225.92
8.1.270.0040.00422.12
8.1.260.0100.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00922.16
8.1.230.0040.00818.15
8.1.220.0030.00517.91
8.1.210.0000.00918.77
8.1.200.0070.00417.60
8.1.190.0060.00317.73
8.1.180.0050.00318.10
8.1.170.0040.00418.94
8.1.160.0040.00419.35
8.1.150.0030.00619.03
8.1.140.0000.00819.78
8.1.130.0000.00719.09
8.1.120.0090.00017.87
8.1.110.0040.00417.80
8.1.100.0000.00817.78
8.1.90.0080.00017.91
8.1.80.0000.00717.82
8.1.70.0070.00017.75
8.1.60.0030.00517.83
8.1.50.0030.00617.89
8.1.40.0050.00317.74
8.1.30.0030.00517.94
8.1.20.0000.00817.96
8.1.10.0060.00317.81
8.1.00.0050.00317.82
8.0.300.0080.00018.77
8.0.290.0000.00817.00
8.0.280.0040.00418.70
8.0.270.0000.00717.46
8.0.260.0000.00718.76
8.0.250.0000.00717.30
8.0.240.0040.00417.32
8.0.230.0070.00017.32
8.0.220.0000.00717.30
8.0.210.0040.00417.30
8.0.200.0050.00317.25
8.0.190.0030.00617.34
8.0.180.0000.00817.21
8.0.170.0040.00417.20
8.0.160.0000.00817.29
8.0.150.0080.00017.20
8.0.140.0000.00717.29
8.0.130.0000.00613.70
8.0.120.0020.00517.23
8.0.110.0050.00317.18
8.0.100.0040.00417.16
8.0.90.0040.00417.27
8.0.80.0120.00617.25
8.0.70.0050.00317.23
8.0.60.0000.00817.18
8.0.50.0000.00717.34
8.0.30.0110.00817.41
8.0.20.0130.00917.46
8.0.10.0040.00417.28
8.0.00.0120.00617.01
7.4.330.0030.00315.55
7.4.320.0000.00716.69
7.4.300.0000.00716.96
7.4.290.0030.00516.82
7.4.280.0000.00716.80
7.4.270.0000.00916.91
7.4.260.0030.00616.95
7.4.250.0040.00416.94
7.4.240.0040.00416.85
7.4.230.0040.00417.03
7.4.220.0150.01216.86
7.4.210.0060.00916.93
7.4.200.0040.00416.73
7.4.160.0080.01116.89
7.4.150.0060.01217.40
7.4.140.0110.01117.86
7.4.130.0150.00916.84
7.4.120.0090.01216.91
7.3.330.0000.00713.64
7.3.320.0060.00013.51
7.3.310.0030.00616.70
7.3.300.0040.00416.57
7.3.290.0000.00716.76
7.3.280.0120.01216.67
7.3.270.0150.00417.40
7.3.260.0100.00816.85
7.3.250.0090.01016.86
7.3.240.0090.01416.76

preferences:
45.63 ms | 400 KiB | 5 Q