3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (['en_US', 'ru_RU', 'es_ES', 'fa_IR'] as $locale) { $pattern = <<<CONFIG '%s' => [ 'medium_no_year-short' => "%s", // %s 'long_no_year-short' => "%s", // %s ], CONFIG; $mediumF = new IntlDateFormatter($locale, IntlDateFormatter::MEDIUM, IntlDateFormatter::SHORT); $longF = new IntlDateFormatter($locale, IntlDateFormatter::LONG, IntlDateFormatter::SHORT); printf( $pattern, $locale, $mediumF->getPattern(), $mediumF->format(1455111783), $longF->getPattern(), $longF->format(1455111783) ); }

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.0220.00422.05
8.3.50.0330.00923.79
8.3.40.0140.00721.50
8.3.30.0150.00921.48
8.3.20.0070.00322.88
8.3.10.0060.00323.15
8.3.00.0030.00723.97
8.2.180.0150.00925.92
8.2.170.0070.01021.79
8.2.160.0060.01024.95
8.2.150.0090.00024.18
8.2.140.0000.00924.66
8.2.130.0000.00926.16
8.2.120.0050.01024.07
8.2.110.0110.00025.08
8.2.100.0070.00721.39
8.2.90.0050.00521.84
8.2.80.0120.00821.00
8.2.70.0000.01821.13
8.2.60.0000.01021.30
8.2.50.0120.00521.00
8.2.40.0050.00523.34
8.2.30.0070.00322.16
8.2.20.0000.00921.24
8.2.10.0030.00621.66
8.2.00.0100.00021.56
8.1.280.0100.01625.92
8.1.270.0080.00326.18
8.1.260.0100.00026.35
8.1.250.0060.00328.09
8.1.240.0210.00724.70
8.1.230.0070.00726.53
8.1.220.0070.00321.39
8.1.210.0050.00520.98
8.1.200.0060.00620.97
8.1.190.0060.00320.85
8.1.180.0070.00420.98
8.1.170.0060.00322.18
8.1.160.0050.00523.70
8.1.150.0030.01021.71
8.1.140.0060.00323.17
8.1.130.0070.00722.81
8.1.120.0060.00320.93
8.1.110.0000.00920.74
8.1.100.0040.00420.91
8.1.90.0090.00021.04
8.1.80.0040.00820.92
8.1.70.0060.00320.84
8.1.60.0050.00520.98
8.1.50.0000.01020.95
8.1.40.0030.00620.77
8.1.30.0030.00620.95
8.1.20.0000.00921.14
8.1.10.0180.00021.06
8.1.00.0000.00921.35
8.0.300.0030.00720.41
8.0.290.0050.00520.50
8.0.280.0000.00821.19
8.0.270.0000.00820.88
8.0.260.0000.00821.31
8.0.250.0060.00320.64
8.0.240.0080.00020.70
8.0.230.0060.00320.64
8.0.220.0060.00320.56
8.0.210.0030.00620.60
8.0.200.0060.00320.77
8.0.190.0040.00420.69
8.0.180.0060.00320.62
8.0.170.0030.00620.71
8.0.160.0170.00620.30
8.0.150.0040.00420.36
8.0.140.0090.00020.59
8.0.130.0000.00613.43
8.0.120.0030.00820.24
8.0.110.0000.00920.46
8.0.100.0030.00620.32
8.0.90.0030.00620.61
8.0.80.0110.00820.57
8.0.70.0040.00420.13
8.0.60.0030.00620.49
8.0.50.0000.00920.30
8.0.30.0120.00920.54
8.0.20.0110.01320.45
8.0.10.0000.00920.76
8.0.00.0110.00920.33
7.4.330.0050.00016.79
7.4.320.0000.00820.36
7.4.300.0000.01120.22
7.4.290.0000.00820.40
7.4.280.0060.00320.43
7.4.270.0040.00420.08
7.4.260.0030.00620.41
7.4.250.0060.00320.36
7.4.240.0060.00320.34
7.4.230.0090.00020.49
7.4.220.0070.02120.01
7.4.210.0130.01120.43
7.4.200.0040.00420.36
7.4.160.0030.01620.21
7.4.150.0030.01820.15
7.4.140.0110.01120.27
7.4.130.0080.01220.15
7.4.120.0080.01220.14
7.4.110.0120.00820.08
7.4.100.0070.02020.31
7.4.90.0150.00620.08
7.4.80.0060.01620.31
7.4.70.0100.01020.21
7.4.60.0120.00820.01
7.4.50.0120.00620.24
7.4.40.0140.00720.29
7.4.30.0090.01220.45
7.4.00.0060.01318.57
7.3.330.0020.00213.27
7.3.320.0020.00213.15
7.3.310.0030.00620.01
7.3.300.0000.00919.92
7.3.290.0000.00919.83
7.3.280.0080.01119.84
7.3.270.0120.00819.94
7.3.260.0100.01020.04
7.3.250.0110.01019.94
7.3.240.0130.00920.01
7.3.230.0070.01420.09
7.3.210.0100.01019.93
7.3.200.0120.00919.95
7.3.190.0060.01419.97
7.3.180.0060.01319.66
7.3.170.0120.01019.92
7.3.160.0160.00319.65
7.3.00.0000.01120.19
7.2.330.0120.00920.03
7.2.320.0080.01220.43
7.2.310.0180.00320.32
7.2.300.0090.01420.04
7.2.290.0090.01220.15
7.2.130.0040.01520.63
7.2.120.0070.00720.44
7.2.110.0140.00320.35
7.2.100.0150.00020.56
7.2.90.0000.01720.73
7.2.80.0100.00320.80
7.2.70.0030.01320.80
7.2.60.0100.00720.66
7.2.50.0120.00320.64
7.2.40.0060.01020.54
7.2.30.0070.00720.41
7.2.20.0060.00920.58
7.2.10.0040.00820.57
7.2.00.0100.00921.97
7.1.250.0040.00719.50
7.1.240.0000.01619.45
7.1.230.0030.01419.66
7.1.220.0040.00819.30
7.1.210.0060.00919.64
7.1.200.0050.00819.41
7.1.190.0030.01019.17
7.1.180.0040.01119.61
7.1.170.0050.00819.41
7.1.160.0030.00719.45
7.1.150.0040.00919.38
7.1.140.0040.01419.50
7.1.130.0030.01019.62
7.1.120.0110.00419.46
7.1.110.0030.01319.68
7.1.100.0070.01120.66
7.1.90.0030.00719.40
7.1.80.0000.01219.37
7.1.70.0090.00720.34
7.1.60.0070.01620.28
7.1.50.0060.01320.20
7.1.40.0110.00419.73
7.1.30.0030.01019.34
7.1.20.0100.00719.74
7.1.10.0110.00719.55
7.1.00.0050.04422.86
7.0.330.0120.00319.10
7.0.320.0070.00319.14
7.0.310.0030.01019.16
7.0.300.0000.01019.15
7.0.290.0080.00819.14
7.0.280.0060.00619.18
7.0.270.0030.01019.09
7.0.260.0040.00819.17
7.0.250.0090.00319.47
7.0.240.0080.00819.01
7.0.230.0100.00719.17
7.0.220.0070.00719.00
7.0.210.0100.00619.08
7.0.200.0050.01319.15
7.0.190.0070.01119.31
7.0.180.0030.00719.13
7.0.170.0070.00718.93
7.0.160.0000.01419.35
7.0.150.0070.00719.23
7.0.140.0070.01119.26
7.0.130.0030.01318.87
7.0.120.0000.01718.52
7.0.110.0040.00719.05
7.0.100.0100.01018.94
7.0.90.0060.00919.31
7.0.80.0030.01318.88
7.0.70.0090.00919.21
7.0.60.0120.02421.35
7.0.50.0050.04218.43
7.0.40.0090.04320.15
7.0.30.0230.04220.25
7.0.20.0180.03520.24
7.0.10.0110.04520.37
7.0.00.0050.04920.11
5.6.380.0060.00617.68
5.6.370.0090.00917.64
5.6.360.0090.00617.58
5.6.350.0080.00517.55
5.6.340.0070.00418.14
5.6.330.0080.00618.27
5.6.320.0030.01017.70
5.6.310.0000.01417.71
5.6.300.0110.00318.05
5.6.290.0090.00318.01
5.6.280.0070.04021.30
5.6.270.0000.01717.98
5.6.260.0070.00718.07
5.6.250.0060.00918.10
5.6.240.0060.00617.75
5.6.230.0080.00417.75
5.6.220.0060.00917.63
5.6.210.0050.02821.16
5.6.200.0090.04518.02
5.6.190.0020.03420.74
5.6.180.0170.03520.81
5.6.170.0170.01821.00
5.6.160.0110.02520.82
5.6.150.0100.03017.99
5.6.140.0100.02718.14
5.6.130.0050.05018.13
5.6.120.0130.04221.09
5.6.110.0130.04121.08
5.6.100.0050.03821.22
5.6.90.0070.02821.03
5.6.80.0020.02620.79
5.6.70.0000.01918.12
5.6.60.0040.01117.76
5.6.50.0090.00617.97
5.6.40.0070.01017.88
5.6.30.0090.00617.73
5.6.20.0140.00017.85
5.6.10.0040.01117.94
5.6.00.0080.00817.73
5.5.380.0000.01011.15
5.5.370.0040.00810.90
5.5.360.0030.00610.96
5.5.350.1850.02017.46
5.5.340.0030.04614.57
5.5.330.0020.02717.20
5.5.320.0190.03917.27
5.5.310.0150.04517.23
5.5.300.0030.04514.48
5.5.290.0090.02014.51
5.5.280.0080.04017.62
5.5.270.0070.03317.64
5.5.260.0070.04617.70
5.5.250.0080.04017.52
5.5.240.0160.04117.30
5.5.230.0070.00410.90
5.5.220.0100.00310.90
5.5.210.0030.00910.90
5.5.200.0000.01110.97
5.5.190.0080.00310.90
5.5.180.0030.00310.90
5.5.170.0040.00411.03
5.5.160.0050.00210.90
5.5.150.0060.00611.02
5.5.140.0090.00010.90
5.5.130.0000.00610.90
5.5.120.0040.00710.90
5.5.110.0050.00310.94
5.5.100.0090.00310.90
5.5.90.0070.00311.02
5.5.80.0040.00410.90
5.5.70.0030.00610.90
5.5.60.0030.00510.94
5.5.50.0030.00610.90
5.5.40.0040.00410.90
5.5.30.0040.00410.90
5.5.20.0060.00010.92
5.5.10.0030.00311.04
5.5.00.0030.00610.90

preferences:
62.28 ms | 401 KiB | 5 Q