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); $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.40.0070.01019.03
8.3.30.0100.00719.01
8.3.20.0120.00420.46
8.3.10.0000.00923.61
8.3.00.0130.00322.10
8.2.170.0000.01522.96
8.2.160.0150.00819.41
8.2.150.0130.00724.18
8.2.140.0090.00924.66
8.2.130.0030.00519.39
8.2.120.0070.00726.35
8.2.110.0090.00020.65
8.2.100.0090.00318.28
8.2.90.0040.00419.47
8.2.80.0050.00518.18
8.2.70.0030.00518.00
8.2.60.0090.00018.18
8.2.50.0080.00018.18
8.2.40.0080.00020.61
8.2.30.0060.00319.64
8.2.20.0030.00618.28
8.2.10.0040.00418.24
8.2.00.0040.00418.23
8.1.270.0080.00022.39
8.1.260.0090.00926.35
8.1.250.0030.00628.09
8.1.240.0030.00622.34
8.1.230.0060.00619.29
8.1.220.0050.00318.03
8.1.210.0040.00418.77
8.1.200.0070.00317.73
8.1.190.0000.00817.61
8.1.180.0040.00418.10
8.1.170.0030.00519.03
8.1.160.0000.00719.30
8.1.150.0040.00419.05
8.1.140.0030.00519.88
8.1.130.0040.00419.09
8.1.120.0040.00417.86
8.1.110.0040.00417.73
8.1.100.0030.00517.87
8.1.90.0040.00417.85
8.1.80.0000.00717.89
8.1.70.0040.00417.74
8.1.60.0060.00317.93
8.1.50.0050.00317.91
8.1.40.0040.00417.84
8.1.30.0040.00417.86
8.1.20.0040.00417.96
8.1.10.0000.00817.85
8.1.00.0030.00617.77
8.0.300.0060.00318.77
8.0.290.0060.00317.13
8.0.280.0040.00418.74
8.0.270.0030.00417.51
8.0.260.0040.00717.19
8.0.250.0000.00817.37
8.0.240.0000.00717.27
8.0.230.0040.00417.31
8.0.220.0000.00717.28
8.0.210.0040.00417.15
8.0.200.0030.00317.23
8.0.190.0060.00317.34
8.0.180.0090.00017.25
8.0.170.0000.00717.32
8.0.160.0000.00817.39
8.0.150.0030.00517.22
8.0.140.0000.00817.24
8.0.130.0030.00313.69
8.0.120.0060.00317.26
8.0.110.0040.00417.28
8.0.100.0040.00417.34
8.0.90.0030.00517.33
8.0.80.0170.00717.26
8.0.70.0040.00417.28
8.0.60.0040.00417.10
8.0.50.0040.00417.27
8.0.30.0070.01217.33
8.0.20.0100.00917.49
8.0.10.0000.00717.24
8.0.00.0130.00916.96
7.4.330.0050.00015.55
7.4.320.0040.00416.80
7.4.300.0000.00616.73
7.4.290.0000.00816.71
7.4.280.0030.00316.82
7.4.270.0000.00716.81
7.4.260.0050.00316.90
7.4.250.0040.00416.82
7.4.240.0030.00416.92
7.4.230.0050.00216.93
7.4.220.0100.01016.86
7.4.210.0150.00316.98
7.4.200.0000.00717.00
7.4.160.0130.00716.87
7.4.150.0060.01617.40
7.4.140.0120.01217.86
7.4.130.0220.00816.77
7.4.120.0100.00916.84
7.3.330.0040.00413.75
7.3.320.0030.00313.66
7.3.310.0050.00516.52
7.3.300.0070.00016.68
7.3.290.0040.00316.53
7.3.280.0140.00816.64
7.3.270.0150.00417.40
7.3.260.0050.01616.73
7.3.250.0120.00616.87
7.3.240.0120.01016.74

preferences:
30.12 ms | 400 KiB | 5 Q