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')) { 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.60.0150.00716.59
8.3.50.0090.00616.54
8.3.40.0130.00719.13
8.3.30.0090.00618.96
8.3.20.0040.00420.41
8.3.10.0110.00723.63
8.3.00.0030.00522.05
8.2.180.0090.00618.66
8.2.170.0190.00322.96
8.2.160.0100.00320.59
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00719.44
8.2.120.0130.00726.35
8.2.110.0070.00320.41
8.2.100.0060.00618.16
8.2.90.0040.00419.34
8.2.80.0040.00418.05
8.2.70.0000.00917.88
8.2.60.0040.00418.28
8.2.50.0060.00318.29
8.2.40.0060.00320.36
8.2.30.0040.00419.61
8.2.20.0040.00418.42
8.2.10.0030.00518.39
8.2.00.0000.00718.34
8.1.280.0070.01125.92
8.1.270.0050.00322.27
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0000.01021.22
8.1.230.0070.00419.41
8.1.220.0050.00317.93
8.1.210.0040.00418.77
8.1.200.0100.00017.73
8.1.190.0000.00917.73
8.1.180.0040.00418.10
8.1.170.0000.00918.89
8.1.160.0080.00019.38
8.1.150.0040.00419.01
8.1.140.0040.00419.72
8.1.130.0000.00719.23
8.1.120.0030.00617.78
8.1.110.0050.00317.72
8.1.100.0040.00417.85
8.1.90.0040.00417.82
8.1.80.0040.00417.87
8.1.70.0000.00717.79
8.1.60.0040.00417.95
8.1.50.0040.00417.85
8.1.40.0000.00817.90
8.1.30.0060.00318.07
8.1.20.0080.00017.92
8.1.10.0040.00417.89
8.1.00.0040.00417.67
8.0.300.0090.00020.34
8.0.290.0030.00617.13
8.0.280.0000.00718.70
8.0.270.0040.00417.54
8.0.260.0060.00317.11
8.0.250.0070.00017.33
8.0.240.0000.00717.21
8.0.230.0070.00017.27
8.0.220.0080.00017.25
8.0.210.0040.00417.28
8.0.200.0000.00717.28
8.0.190.0030.00517.31
8.0.180.0050.00317.26
8.0.170.0040.00417.26
8.0.160.0000.00717.30
8.0.150.0050.00217.10
8.0.140.0000.00817.29
8.0.130.0030.00313.65
8.0.120.0040.00417.13
8.0.110.0040.00417.33
8.0.100.0030.00617.27
8.0.90.0000.00717.16
8.0.80.0120.00617.30
8.0.70.0030.00517.22
8.0.60.0080.00017.32
8.0.50.0040.00417.23
8.0.30.0080.01017.40
8.0.20.0120.01017.57
8.0.10.0000.00817.43
8.0.00.0080.01117.03
7.4.330.0000.00515.55
7.4.320.0000.00816.90
7.4.300.0030.00316.84
7.4.290.0040.00416.89
7.4.280.0070.00016.95
7.4.270.0000.00716.78
7.4.260.0050.00316.90
7.4.250.0050.00316.89
7.4.240.0000.00716.97
7.4.230.0000.00717.03
7.4.220.0110.00816.85
7.4.210.0090.00516.85
7.4.200.0040.00416.89
7.4.160.0090.01316.90
7.4.150.0090.00917.40
7.4.140.0140.00917.86
7.4.130.0120.01316.78
7.4.120.0130.00616.75
7.3.330.0040.00413.65
7.3.320.0000.00613.69
7.3.310.0000.00916.56
7.3.300.0000.00716.67
7.3.290.0030.00316.72
7.3.280.0090.00816.65
7.3.270.0120.00617.40
7.3.260.0140.01216.79
7.3.250.0100.00816.87
7.3.240.0160.00516.66

preferences:
39.37 ms | 400 KiB | 5 Q