3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(string $timezone) { $ok = true; try { new DateTimeZone($timezone); } catch (Exception $e) { $ok = false; } echo "$timezone: ", var_export($ok, true), "\n"; } test('+01:00'); test('+01:00:00');

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.0040.01118.31
8.3.50.0070.00718.04
8.3.40.0070.00722.04
8.3.30.0110.00318.90
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0050.00226.16
8.2.180.0110.00425.92
8.2.170.0040.01118.96
8.2.160.0100.00722.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0100.00326.16
8.2.110.0090.00022.12
8.2.100.0000.01117.84
8.2.90.0050.00317.75
8.2.80.0000.00818.84
8.2.70.0040.00417.63
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0030.00619.76
8.2.30.0000.00819.73
8.2.20.0000.00718.05
8.2.10.0050.00319.30
8.2.00.0070.00019.21
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0110.00028.09
8.1.240.0090.00023.66
8.1.230.0070.00417.77
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0030.00717.25
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0000.00718.59
8.1.160.0030.00518.82
8.1.150.0040.00418.58
8.1.140.0050.00217.41
8.1.130.0070.00019.23
8.1.120.0020.00517.43
8.1.110.0040.00317.41
8.1.100.0040.00417.32
8.1.90.0030.00517.42
8.1.80.0000.01017.48
8.1.70.0070.00017.42
8.1.60.0000.00817.58
8.1.50.0040.00817.41
8.1.40.0000.01117.50
8.1.30.0000.00817.66
8.1.20.0000.00917.67
8.1.10.0040.00417.63
8.1.00.0050.00217.52
8.0.300.0040.00418.77
8.0.290.0000.00916.88
8.0.280.0030.00318.38
8.0.270.0070.00018.13
8.0.260.0030.00316.88
8.0.250.0040.00417.12
8.0.240.0040.00417.16
8.0.230.0070.00017.06
8.0.220.0040.00416.91
8.0.210.0050.00317.00
8.0.200.0030.00316.98
8.0.190.0080.00016.94
8.0.180.0000.00717.05
8.0.170.0060.00317.04
8.0.160.0040.00417.02
8.0.150.0030.00517.03
8.0.140.0000.00816.95
8.0.130.0050.00013.43
8.0.120.0040.00416.89
8.0.110.0000.00716.91
8.0.100.0040.00416.89
8.0.90.0000.00717.05
8.0.80.0040.00416.92
8.0.70.0000.00716.80
8.0.60.0000.00716.79
8.0.50.0030.00316.79
8.0.30.0040.00416.91
8.0.20.0080.00016.96
8.0.10.0000.00717.03
8.0.00.0040.00417.04
7.4.330.0060.00015.55
7.4.320.0000.00716.49
7.4.300.0070.00016.42
7.4.290.0000.00716.34
7.4.280.0000.00716.44
7.4.270.0030.00616.59
7.4.260.0030.00313.26
7.4.250.0040.00416.38
7.4.240.0030.00316.63
7.4.230.0040.00416.47
7.4.220.0070.00016.33
7.4.210.0030.00316.60
7.4.200.0000.00716.35
7.4.190.0070.00016.54
7.4.180.0030.00316.73
7.4.160.0000.00716.68
7.4.150.0050.00316.27
7.4.140.0070.00016.27
7.4.130.0030.00316.37
7.4.120.0040.00416.60
7.4.110.0000.00716.64
7.4.100.0000.00716.41
7.4.90.0060.00016.25
7.4.80.0070.00016.27
7.4.70.0000.00616.34
7.4.60.0000.00716.34
7.4.50.0040.00416.30
7.4.40.0000.00716.34
7.4.30.0040.00416.48
7.4.20.0030.00316.51
7.4.10.0000.00716.64
7.4.00.0030.00316.53
7.3.330.0040.00416.39
7.3.320.0050.00013.38
7.3.310.0040.00416.40
7.3.300.0030.00316.39
7.3.290.0030.00316.41
7.3.280.0070.00016.36
7.3.270.0060.00016.38
7.3.260.0000.00716.33
7.3.250.0090.00016.22
7.3.240.0000.00816.39
7.3.230.0030.00316.41
7.3.220.0040.00416.23
7.3.210.0000.00716.38
7.3.200.0040.00416.19
7.3.190.0030.00316.31
7.3.180.0030.00316.34
7.3.170.0000.00716.38
7.3.160.0070.00016.29
7.3.150.0000.00716.25
7.3.140.0030.00316.34
7.3.130.0030.00316.31
7.3.120.0000.00616.38
7.3.110.0000.00616.26
7.3.100.0000.00716.31
7.3.90.0000.00616.39
7.3.80.0000.00616.27
7.3.70.0030.00316.43
7.3.60.0040.00416.45
7.3.50.0000.00716.36
7.3.40.0000.00616.36
7.3.30.0040.00416.52
7.3.20.0060.00316.52
7.3.10.0000.00716.37
7.3.00.0040.00416.36

preferences:
63.72 ms | 400 KiB | 5 Q