3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Locale; echo count(DateTimeZone::listIdentifiers()); echo "\n"; foreach (DateTimeZone::listIdentifiers() as $identifier) { $timezone = new DateTimeZone($identifier); $location = $timezone->getLocation(); $countryCode = $location['country_code'] ?? 'N/A'; // 国コードから国名(日本語)を取得 $countryName = Locale::getDisplayRegion('-' . $countryCode, 'ja'); // タイムゾーンの地域名 $timezoneName = $identifier; echo "国名: {$countryName}, タイムゾーン: {$timezoneName}\n"; }

Abusive script

This script was stopped while abusing our resources

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.4.10.0030.00720.77
8.3.140.0040.01518.04
8.3.130.0390.01017.76
8.3.120.0410.00718.27
8.3.110.0310.01317.64
8.3.100.0400.00418.27
8.3.90.0100.01617.80
8.3.80.0240.00317.82
8.3.70.0160.00717.68
8.3.60.0110.01317.98
8.3.50.0310.00917.84
8.3.40.0270.01018.87
8.3.30.0330.01318.85
8.3.20.0250.01819.05
8.3.10.0220.01318.87
8.3.00.0100.00319.14
8.2.250.0120.00818.12
8.2.240.0200.00817.87
8.2.230.0140.01418.18
8.2.220.0200.00617.78
8.2.210.0190.01317.66
8.2.200.0150.00618.11
8.2.190.0250.00017.87
8.2.180.0160.00617.85
8.2.170.0400.00619.04
8.2.160.0330.01119.16
8.2.150.0360.01119.12
8.2.140.0270.01719.04
8.2.130.0350.01419.12
8.2.120.0300.01719.14
8.2.110.0360.01019.31
8.2.100.0330.00719.14
8.2.90.0300.01319.25
8.2.80.0410.00719.09
8.2.70.0370.00919.11
8.2.60.0450.00918.90
8.2.50.0300.01119.19
8.2.40.0190.01919.28
8.2.30.0400.00418.91
8.2.20.0270.01718.91
8.2.10.0280.01418.86
8.2.00.0240.00719.24
8.1.300.0190.00917.38
8.1.290.0240.00917.81
8.1.280.0300.01517.52
8.1.270.0400.00418.94
8.1.260.0420.00418.93
8.1.250.0480.00918.70
8.1.240.0260.01119.07
8.1.230.0150.00618.86
8.1.220.0170.00319.05
8.1.210.0150.00318.92
8.1.200.0280.01418.81
8.1.190.0330.00718.53
8.1.180.0300.01118.93
8.1.170.0370.00718.80
8.1.160.0310.00918.65
8.1.150.0300.01318.76
8.1.140.0230.02018.93
8.1.130.0270.00518.84
8.1.120.0220.01718.70
8.1.110.0280.01118.90
8.1.100.0270.00318.71
8.1.90.0340.00618.80
8.1.80.0500.01018.46
8.1.70.0270.01518.66
8.1.60.0300.01718.83
8.1.50.0390.01218.64
8.1.40.0260.01118.68
8.1.30.0300.01519.15
8.1.20.0280.01718.78
8.1.10.0330.01318.82
8.1.00.0400.00718.74

preferences:
25.63 ms | 403 KiB | 5 Q