3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Get Localized month name * @param int $month * @param string $locale * @param string $format * @return string */ function getLocalizedMonthName($month, $locale, $format = "LLLL") { $dateFormatter = new IntlDateFormatter($locale, IntlDateFormatter::FULL, IntlDateFormatter::FULL); $dateFormatter->setPattern($format); return $dateFormatter->format(mktime(0, 0, 0, $month)); } $locales = ['pl_PL', 'en-US']; foreach ($locales as $locale) { foreach (range(1, 12) as $monthNumber) { echo $monthNumber . " - " . getLocalizedMonthName($monthNumber, $locale) . PHP_EOL; } echo PHP_EOL . PHP_EOL; }

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.0140.00720.13
8.3.50.0110.01322.96
8.3.40.0070.01020.98
8.3.30.0070.01121.21
8.3.20.0120.00922.68
8.3.10.0060.00324.10
8.3.00.0000.01125.59
8.2.180.0130.01020.13
8.2.170.0100.00722.96
8.2.160.0110.00722.75
8.2.150.0040.00424.18
8.2.140.0080.00424.66
8.2.130.0030.00626.16
8.2.120.0070.00420.75
8.2.110.0090.00322.30
8.2.100.0070.00720.88
8.2.90.0000.01021.64
8.2.80.0030.00720.63
8.2.70.0060.00620.50
8.2.60.0060.00320.93
8.2.50.0000.01020.75
8.2.40.0070.00324.22
8.2.30.0030.00623.00
8.2.20.0030.00620.93
8.2.10.0030.00621.34
8.2.00.0030.00621.31
8.1.280.0070.01025.92
8.1.270.0060.00322.45
8.1.260.0030.00626.35
8.1.250.0030.00628.09
8.1.240.0040.00725.80
8.1.230.0040.01120.86
8.1.220.0070.00320.79
8.1.210.0000.00920.48
8.1.200.0060.00620.50
8.1.190.0060.00620.60
8.1.180.0070.00320.77
8.1.170.0030.00621.73
8.1.160.0060.00624.40
8.1.150.0030.00621.33
8.1.140.0030.00620.65
8.1.130.0060.00320.91
8.1.120.0070.00420.77
8.1.110.0030.00620.63
8.1.100.0060.00320.87
8.1.90.0000.00920.54
8.1.80.0070.00320.85
8.1.70.0030.00620.83
8.1.60.0070.00320.66
8.1.50.0000.01020.70
8.1.40.0050.00520.84
8.1.30.0080.00320.93
8.1.20.0070.00321.09
8.1.10.0030.00620.79
8.1.00.0070.00320.80
8.0.300.0060.00320.10
8.0.290.0030.00620.13
8.0.280.0000.00920.91
8.0.270.0080.00420.52
8.0.260.0090.00020.93
8.0.250.0030.00620.27
8.0.240.0030.00720.34
8.0.230.0030.00620.23
8.0.220.0040.00420.27
8.0.210.0030.00620.30
8.0.200.0000.00920.22
8.0.190.0000.01020.29
8.0.180.0040.00420.12
8.0.170.0060.00320.29
8.0.160.0000.01020.15
8.0.150.0030.00620.08
8.0.140.0060.00320.18
8.0.130.0070.00013.48
8.0.120.0070.00420.09
8.0.110.0000.00920.10
8.0.100.0060.00320.27
8.0.90.0070.00320.43
8.0.80.0120.00620.36
8.0.70.0050.00520.27
8.0.60.0000.01020.04
8.0.50.0030.00620.15
8.0.30.0120.01020.69
8.0.20.0100.01420.46
8.0.10.0030.00620.36
8.0.00.0090.01620.01
7.4.330.0020.00215.08
7.4.320.0000.00919.91
7.4.300.0030.00520.01
7.4.290.0030.00619.96
7.4.280.0080.00319.99
7.4.270.0070.00320.09
7.4.260.0070.00319.89
7.4.250.0040.00719.84
7.4.240.0060.00319.95
7.4.230.0000.00919.83
7.4.220.0130.01319.93
7.4.210.0090.01820.08
7.4.200.0090.00019.97
7.4.160.0110.01119.89
7.4.150.0100.01320.00
7.4.140.0110.01819.94
7.4.130.0130.01019.76
7.4.120.0100.01119.88
7.4.110.0120.00920.10
7.4.100.0080.01319.87
7.4.90.0130.01019.84
7.4.80.0110.01120.07
7.4.70.0180.00419.96
7.4.60.0100.01019.93
7.4.50.0000.01019.63
7.4.40.0160.01019.74
7.4.30.0190.01119.93
7.4.10.0050.01317.91
7.4.00.0060.01418.38
7.3.330.0000.00613.23
7.3.320.0000.00613.33
7.3.310.0070.00319.49
7.3.300.0000.00819.75
7.3.290.0100.01519.56
7.3.280.0060.01419.70
7.3.270.0140.00719.88
7.3.260.0140.00719.86
7.3.250.0080.01419.83
7.3.240.0060.01519.85
7.3.230.0110.01119.82
7.3.210.0060.01519.81
7.3.200.0180.01119.73
7.3.190.0100.01020.12
7.3.180.0140.01119.64
7.3.170.0170.00319.80
7.3.160.0120.01220.19
7.3.130.0100.01018.11
7.3.120.0130.00617.65
7.3.110.0070.01418.23
7.3.100.0060.00918.14
7.3.90.0030.01618.15
7.3.80.0060.01217.98
7.3.70.0120.00918.00
7.3.60.0000.01617.85
7.3.50.0070.01118.14
7.3.40.0150.00718.02
7.3.30.0060.01518.18
7.3.20.0090.01219.94
7.3.10.0000.01819.77
7.3.00.0000.01719.86
7.2.330.0220.00619.80
7.2.320.0000.02720.29
7.2.310.0210.01319.86
7.2.300.0090.01219.70
7.2.290.0130.01320.11
7.2.260.0060.01318.28
7.2.250.0070.01418.61
7.2.240.0110.00718.65
7.2.230.0030.01718.50
7.2.220.0030.01218.77
7.2.210.0070.01618.47
7.2.200.0060.01518.37
7.2.190.0080.00618.21
7.2.180.0070.01018.54
7.2.170.0100.01318.43
7.2.160.0100.01318.23
7.2.150.0030.01419.97
7.2.140.0030.01420.11
7.2.130.0030.01320.15
7.2.120.0090.00620.26
7.2.110.0060.00620.40
7.2.100.0070.01020.11
7.2.90.0090.00920.40
7.2.80.0030.01020.34
7.2.70.0100.00620.11
7.2.60.0050.01220.35
7.2.50.0060.01020.17
7.2.40.0000.01620.23
7.2.30.0060.01220.37
7.2.20.0030.01220.02
7.2.10.0090.00620.05
7.2.00.0030.01521.44
7.1.330.0060.00919.09
7.1.320.0030.01318.87
7.1.310.0090.00619.07
7.1.300.0000.01519.14
7.1.290.0060.01519.18
7.1.280.0000.01819.14
7.1.270.0040.01218.82
7.1.260.0070.01019.05
7.1.250.0060.01019.09
7.1.240.0070.00719.29
7.1.230.0000.02019.25
7.1.220.0060.00919.23
7.1.210.0070.00719.22
7.1.200.0100.00719.15
7.1.190.0000.01819.21
7.1.180.0000.01619.27
7.1.170.0030.01018.92
7.1.160.0080.00919.11
7.1.150.0030.00918.95
7.1.140.0090.00919.26
7.1.130.0070.01019.03
7.1.120.0100.00719.09
7.1.110.0090.00919.02
7.1.100.0040.01120.56
7.1.90.0090.00618.90
7.1.80.0060.01019.10
7.1.70.0140.00319.88
7.1.60.0050.01819.94
7.1.50.0060.01620.04
7.1.40.0040.00819.12
7.1.30.0060.00919.23
7.1.20.0080.00819.05
7.1.10.0070.01019.21
7.1.00.0050.04522.58
7.0.330.0060.00918.69
7.0.320.0120.00318.91
7.0.310.0040.00818.56
7.0.300.0060.01019.07
7.0.290.0070.01318.86
7.0.280.0090.00618.77
7.0.270.0060.01218.73
7.0.260.0090.00618.86
7.0.250.0080.00418.75
7.0.240.0070.01118.91
7.0.230.0040.01518.81
7.0.220.0030.01319.11
7.0.210.0060.00618.72
7.0.200.0230.00818.54
7.0.190.0060.00618.71
7.0.180.0060.00918.84
7.0.170.0070.01018.97
7.0.160.0040.01418.95
7.0.150.0090.01218.81
7.0.140.0100.00618.79
7.0.130.0110.00718.81
7.0.120.0070.01018.73
7.0.110.0090.00618.88
7.0.100.0030.01018.86
7.0.90.0070.00718.72
7.0.80.0070.01118.93
7.0.70.0000.01518.75
7.0.60.0050.03820.98
7.0.50.0070.03218.34
7.0.40.0110.03419.85
7.0.30.0150.02720.09
7.0.20.0130.04620.03
7.0.10.0050.04419.89
7.0.00.0020.05419.99
5.6.400.0070.01117.50
5.6.390.0070.00717.64
5.6.380.0000.01617.47
5.6.370.0030.01717.71
5.6.360.0000.01117.58
5.6.350.0030.01417.81
5.6.340.0070.01317.51
5.6.330.0040.01417.46
5.6.320.0030.00817.89
5.6.310.0040.01417.63
5.6.300.0080.00817.74
5.6.290.0040.01417.42
5.6.280.0030.04421.09
5.6.270.0030.01217.66
5.6.260.0060.00917.68
5.6.250.0030.01017.75
5.6.240.0040.00717.50
5.6.230.0040.01417.59
5.6.220.0060.01317.52
5.6.210.0080.03920.60
5.6.200.0100.03818.11
5.6.190.0020.04220.56
5.6.180.0150.04520.56
5.6.170.0200.04220.63
5.6.160.0080.03820.73
5.6.150.0030.02617.85
5.6.140.0070.04817.99
5.6.130.0080.04217.86
5.6.120.0070.04820.88
5.6.110.0070.04820.84
5.6.100.0030.02820.83
5.6.90.0050.04320.71
5.6.80.0030.04520.55
5.6.70.0040.01117.55
5.6.60.0070.01017.46
5.6.50.0040.01117.72
5.6.40.0000.01917.74
5.6.30.0060.01317.57
5.6.20.0000.01917.60
5.6.10.0030.00917.54
5.6.00.0040.01517.82
5.5.380.0090.00617.71
5.5.370.0060.00917.56
5.5.360.0060.00617.86
5.5.350.0080.04020.81
5.5.340.0070.02717.66
5.5.330.0090.02920.52
5.5.320.0100.04520.41
5.5.310.0090.03020.20
5.5.300.0050.02517.90
5.5.290.0030.04617.86
5.5.280.0100.04120.83
5.5.270.0080.04820.71
5.5.260.0140.04520.77
5.5.250.0070.03820.85
5.5.240.0130.04720.29
5.5.230.0070.01117.71
5.5.220.0070.00717.75
5.5.210.0040.00817.54
5.5.200.0080.00817.05
5.5.190.0060.01217.71
5.5.180.0000.01117.68
5.5.170.0030.01017.07
5.5.160.0000.01417.59
5.5.150.0090.00917.82
5.5.140.0000.01317.72
5.5.130.0040.01117.46
5.5.120.0090.00917.30
5.5.110.0130.00317.48
5.5.100.0030.00717.58
5.5.90.0000.01417.30
5.5.80.0040.01217.37
5.5.70.0030.01417.61
5.5.60.0120.00617.68
5.5.50.0070.00717.32
5.5.40.0030.01317.35
5.5.30.0060.00917.52
5.5.20.0070.01017.68
5.5.10.0060.00917.39
5.5.00.0000.01317.53
5.4.450.0450.02916.72
5.4.440.0380.03716.58
5.4.430.0370.03016.67
5.4.420.0450.02716.78
5.4.410.0320.04216.55
5.4.400.0250.03016.40
5.4.390.0530.04016.63
5.4.380.0600.04316.36
5.4.370.0460.02716.69
5.4.360.0430.03416.50
5.4.350.0450.03116.31
5.4.340.0400.03416.57
5.4.330.0060.00311.13
5.4.320.0400.03416.63
5.4.310.0390.03116.52
5.4.300.0400.04016.47
5.4.290.0500.03016.72
5.4.280.0320.03416.62
5.4.270.0420.03316.43
5.4.260.0420.03016.55
5.4.250.0330.03516.54
5.4.240.0440.02316.45
5.4.230.0180.02316.54
5.4.220.0080.03116.44
5.4.210.0050.03416.57
5.4.200.0420.03515.35
5.4.190.0350.03016.52
5.4.180.0420.03116.42
5.4.170.0370.03216.25
5.4.160.0390.03216.07
5.4.150.0400.03316.39
5.4.140.0380.02815.21
5.4.130.0320.03215.19
5.4.120.0390.03515.09
5.4.110.0430.04015.23
5.4.100.0480.02715.14
5.4.90.0450.03015.30
5.4.80.0410.02815.27
5.4.70.0410.03014.87
5.4.60.0100.03315.17
5.4.50.0110.02315.31
5.4.40.0120.03315.13
5.4.30.0100.02915.18
5.4.20.0190.03514.92
5.4.10.0000.01211.09
5.4.00.0070.00411.15

preferences:
61.74 ms | 401 KiB | 5 Q