3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locales = [ 'pl_PL', 'en-US']; function createLocalizedMonthName( $month, $locale, $format = "MMMM"){ $date = DateTime::createFromFormat("!m", $month); $dateFormatter = new IntlDateFormatter($locale,IntlDateFormatter::FULL, IntlDateFormatter::FULL); $dateFormatter->setPattern($format); return $dateFormatter->format($date); } foreach( $locales as $locale){ foreach (range(1, 10) as $monthNumber) { echo $monthNumber . " - " .createLocalizedMonthName($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.0110.00621.93
8.3.50.0140.01122.82
8.3.40.0000.01721.34
8.3.30.0100.00721.21
8.3.20.0110.01122.55
8.3.10.0060.00324.15
8.3.00.0030.00625.63
8.2.180.0100.01320.38
8.2.170.0150.00322.96
8.2.160.0100.00722.90
8.2.150.0090.00024.18
8.2.140.0050.00524.77
8.2.130.0060.00326.16
8.2.120.0040.00720.88
8.2.110.0080.00322.89
8.2.100.0030.01020.97
8.2.90.0030.00621.28
8.2.80.0000.01520.63
8.2.70.0000.01120.74
8.2.60.0030.00621.16
8.2.50.0060.00920.75
8.2.40.0100.00024.13
8.2.30.0030.00622.91
8.2.20.0030.00720.93
8.2.10.0030.00721.36
8.2.00.0100.00021.36
8.1.280.0000.01725.92
8.1.270.0060.00324.40
8.1.260.0090.00026.35
8.1.250.0090.00028.09
8.1.240.0070.00324.57
8.1.230.0030.01023.95
8.1.220.0060.00320.91
8.1.210.0030.00621.70
8.1.200.0000.01120.48
8.1.190.0060.00320.35
8.1.180.0000.00920.66
8.1.170.0000.00921.68
8.1.160.0040.00824.33
8.1.150.0030.00621.39
8.1.140.0030.00620.72
8.1.130.0060.00320.77
8.1.120.0040.00420.72
8.1.110.0000.00920.73
8.1.100.0060.00320.84
8.1.90.0030.00620.72
8.1.80.0100.00020.82
8.1.70.0030.00620.74
8.1.60.0000.01120.71
8.1.50.0070.00320.81
8.1.40.0000.01120.70
8.1.30.0000.01120.97
8.1.20.0100.00020.98
8.1.10.0070.00320.72
8.1.00.0030.00720.65
8.0.300.0030.00722.54
8.0.290.0030.00720.00
8.0.280.0030.00620.91
8.0.270.0090.00320.54
8.0.260.0040.00420.54
8.0.250.0030.00620.27
8.0.240.0060.00320.32
8.0.230.0040.00420.14
8.0.220.0000.00920.38
8.0.210.0040.00420.39
8.0.200.0050.00320.36
8.0.190.0100.00020.39
8.0.180.0000.00920.29
8.0.170.0070.00320.32
8.0.160.0060.00320.33
8.0.150.0060.00620.08
8.0.140.0050.00520.27
8.0.130.0030.00313.50
8.0.120.0070.00320.18
8.0.110.0030.00620.13
8.0.100.0030.00720.00
8.0.90.0060.00320.20
8.0.80.0090.00920.16
8.0.70.0030.00620.30
8.0.60.0030.00620.33
8.0.50.0060.00320.16
8.0.30.0140.00820.64
8.0.20.0140.01120.62
8.0.10.0000.00920.58
8.0.00.0160.00920.08
7.4.330.0060.00015.21
7.4.320.0080.00019.99
7.4.300.0000.00819.92
7.4.290.0030.00619.91
7.4.280.0030.00720.03
7.4.270.0030.00620.07
7.4.260.0030.00619.88
7.4.250.0000.01019.99
7.4.240.0020.00820.05
7.4.230.0060.00319.90
7.4.220.0060.01320.01
7.4.210.0130.01319.85
7.4.200.0000.00919.79
7.4.160.0070.01119.98
7.4.150.0120.01519.93
7.4.140.0090.02119.97
7.4.130.0120.01519.87
7.4.120.0070.01619.90
7.4.110.0070.02019.90
7.4.100.0060.02319.76
7.4.90.0100.01319.87
7.4.80.0150.00719.78
7.4.70.0200.00019.67
7.4.60.0070.01319.79
7.4.50.0070.00419.86
7.4.40.0070.01419.78
7.4.30.0160.00619.91
7.4.00.0100.01018.61
7.3.330.0030.00313.29
7.3.320.0060.00013.48
7.3.310.0000.00819.54
7.3.300.0040.00419.67
7.3.290.0060.01419.56
7.3.280.0130.00919.53
7.3.270.0210.00020.09
7.3.260.0110.01919.95
7.3.250.0110.01319.88
7.3.240.0160.00619.61
7.3.230.0130.00819.88
7.3.210.0120.00919.76
7.3.200.0100.01019.65
7.3.190.0090.01119.82
7.3.180.0100.01019.99
7.3.170.0090.01219.80
7.3.160.0170.00719.93
7.2.330.0100.01320.10
7.2.320.0060.02220.18
7.2.310.0130.00919.94
7.2.300.0170.00619.77
7.2.290.0150.01519.92
7.2.60.0040.01520.41
7.2.00.0090.00623.13
7.1.200.0140.00018.94
7.1.100.0070.00721.81
7.1.70.0030.01720.61
7.1.60.0100.02020.90
7.1.50.0130.01320.70
7.1.00.0030.08025.58
7.0.200.0420.00617.96
7.0.60.0030.08323.20
7.0.50.0070.07317.87
7.0.40.0070.05323.01
7.0.30.0670.06723.36
7.0.20.0070.05323.36
7.0.10.0130.04023.36
7.0.00.0070.04323.20
5.6.280.0070.05324.27
5.6.210.0130.07323.72
5.6.200.0030.07718.24
5.6.190.0100.08323.52
5.6.180.0100.08723.57
5.6.170.0300.07723.53
5.6.160.0070.08023.46
5.6.150.0100.04718.22
5.6.140.0030.06318.18
5.6.130.0100.08018.15
5.6.120.0100.07324.03
5.6.110.0070.05024.04
5.6.100.0070.04324.16
5.6.90.0070.04724.09
5.6.80.0100.08323.63
5.5.350.0030.04023.38
5.5.340.0030.05317.95
5.5.330.0070.07323.32
5.5.320.0070.08723.54
5.5.310.0270.07723.32
5.5.300.0030.05317.98
5.5.290.0030.05317.95
5.5.280.0070.04323.91
5.5.270.0130.08324.09
5.5.260.0030.09323.89
5.5.250.0200.05023.95
5.5.240.0170.04723.52
5.4.450.0330.04722.04
5.4.440.0130.06322.04
5.4.430.0130.06022.35
5.4.420.0130.06022.51
5.4.410.0170.05722.00
5.4.400.0100.06021.99
5.4.390.0170.05722.03
5.4.380.0130.05721.91
5.4.370.0230.04722.17
5.4.360.0100.06021.71
5.4.350.0070.06021.89
5.4.340.0100.06021.87
5.4.320.0170.05321.99
5.4.310.0170.05021.72
5.4.300.0170.05322.13
5.4.290.0130.05321.80
5.4.280.0300.05721.80
5.4.270.0100.08322.02
5.4.260.0200.05021.89
5.4.250.0200.04722.14
5.4.240.0200.05022.14
5.4.230.0300.04021.78
5.4.220.0200.05021.81
5.4.210.0070.06321.84
5.4.200.0170.05019.54
5.4.190.0230.05021.91
5.4.180.0070.06721.82
5.4.170.0170.06021.55
5.4.160.0230.07321.95
5.4.150.0270.05021.88
5.4.140.0170.05319.22
5.4.130.0170.05019.20
5.4.120.0130.05319.25
5.4.110.0100.06318.97
5.4.100.0130.05719.08
5.4.90.0200.05319.04
5.4.80.0100.05719.40
5.4.70.0130.05319.43
5.4.60.0000.07719.12
5.4.50.0070.06319.46
5.4.40.0130.05319.50
5.4.30.0300.02719.20
5.4.20.0300.05719.46

preferences:
57.99 ms | 401 KiB | 5 Q