3v4l.org

run code in 300+ PHP versions simultaneously
<?php function timezoneExhibitsDST($tzId) { $tz = new DateTimeZone($tzId); $date = new DateTime("now",$tz); return $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.0180.00316.63
8.3.50.0120.00316.66
8.3.40.0070.01018.56
8.3.30.0110.00318.70
8.3.20.0040.00420.07
8.3.10.0040.00423.45
8.3.00.0050.00322.00
8.2.180.0070.01116.88
8.2.170.0190.00322.96
8.2.160.0140.00719.03
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00321.18
8.2.120.0070.00726.35
8.2.110.0060.00322.16
8.2.100.0040.00817.97
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0040.00420.65
8.2.30.0050.00321.06
8.2.20.0070.00017.96
8.2.10.0000.00717.94
8.2.00.0000.00718.02
8.1.280.0040.01125.92
8.1.270.0050.00322.01
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00721.16
8.1.230.0060.00617.83
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0000.00917.23
8.1.180.0020.00518.10
8.1.170.0030.00618.70
8.1.160.0000.00718.95
8.1.150.0040.00418.82
8.1.140.0000.00819.50
8.1.130.0000.00718.93
8.1.120.0090.00017.41
8.1.110.0000.00817.56
8.1.100.0030.00517.50
8.1.90.0000.00717.50
8.1.80.0070.00017.54
8.1.70.0030.00317.54
8.1.60.0090.00017.59
8.1.50.0030.00617.50
8.1.40.0040.00417.64
8.1.30.0000.00717.61
8.1.20.0040.00417.78
8.1.10.0090.00017.70
8.1.00.0050.00317.56
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0070.00018.52
8.0.270.0070.00017.20
8.0.260.0080.00016.95
8.0.250.0030.00317.11
8.0.240.0070.00317.10
8.0.230.0000.00717.11
8.0.220.0030.00317.01
8.0.210.0040.00417.07
8.0.200.0070.00016.98
8.0.190.0080.00017.06
8.0.180.0050.00316.93
8.0.170.0030.00517.04
8.0.160.0000.00716.97
8.0.150.0070.00016.90
8.0.140.0000.00716.93
8.0.130.0030.00313.42
8.0.120.0050.00216.95
8.0.110.0000.00717.04
8.0.100.0000.00816.84
8.0.90.0050.00217.06
8.0.80.0120.00617.00
8.0.70.0030.00616.80
8.0.60.0040.00416.84
8.0.50.0000.00717.04
8.0.30.0050.01117.15
8.0.20.0120.01217.40
8.0.10.0070.00016.93
8.0.00.0030.01417.06
7.4.330.0050.00015.55
7.4.320.0030.00316.62
7.4.300.0030.00316.63
7.4.290.0040.00416.74
7.4.280.0060.00316.76
7.4.270.0050.00316.69
7.4.260.0030.00316.60
7.4.250.0030.00316.66
7.4.240.0050.00316.67
7.4.230.0030.00316.53
7.4.220.0070.01016.72
7.4.210.0110.00616.62
7.4.200.0000.00716.80
7.4.160.0090.01116.54
7.4.150.0140.00317.40
7.4.140.0120.01017.86
7.4.130.0120.00616.64
7.4.120.0110.00916.59
7.3.330.0000.00613.31
7.3.320.0000.00513.32
7.3.310.0030.00416.40
7.3.300.0030.00316.36
7.3.290.0070.00016.18
7.3.280.0090.00716.37
7.3.270.0070.01017.40
7.3.260.0080.01316.45
7.3.250.0080.00816.61
7.3.240.0130.00716.65

preferences:
45.68 ms | 400 KiB | 5 Q