3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (['en_US', 'ru_RU', 'es_ES', 'fa_IR'] as $locale) { $dateFormat = (new \IntlDateFormatter( $locale, \IntlDateFormatter::SHORT, \IntlDateFormatter::NONE ))->getPattern(); $formatWithLongYear = preg_replace( '/(?<!y)yy(?!y)/', 'Y', $dateFormat ); $formatter = new \IntlDateFormatter( $locale, \IntlDateFormatter::NONE, \IntlDateFormatter::NONE, null, null, $formatWithLongYear ); echo $formatter->format(1455111783), 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.0160.00620.13
8.3.50.0060.01922.12
8.3.40.0140.00721.73
8.3.30.0100.00721.68
8.3.20.0090.00023.09
8.3.10.0060.00323.39
8.3.00.0030.00722.58
8.2.180.0190.00622.01
8.2.170.0030.01422.96
8.2.160.0120.00923.02
8.2.150.0090.00024.18
8.2.140.0090.00024.66
8.2.130.0030.00626.16
8.2.120.0070.00324.39
8.2.110.0000.01023.18
8.2.100.0040.01121.66
8.2.90.0090.00321.50
8.2.80.0030.00621.73
8.2.70.0030.00621.55
8.2.60.0040.00821.38
8.2.50.0050.00521.38
8.2.40.0050.01123.10
8.2.30.0100.00522.20
8.2.20.0070.00721.45
8.2.10.0100.00021.52
8.2.00.0030.00621.47
8.1.280.0130.01325.92
8.1.270.0050.00526.63
8.1.260.0090.00026.35
8.1.250.0030.00628.09
8.1.240.0220.00026.45
8.1.230.0030.01024.38
8.1.220.0050.00521.64
8.1.210.0000.00920.98
8.1.200.0100.00021.11
8.1.190.0040.01121.10
8.1.180.0030.00621.03
8.1.170.0040.00721.29
8.1.160.0030.00625.38
8.1.150.0090.00021.64
8.1.140.0050.00523.07
8.1.130.0000.00922.91
8.1.120.0000.00920.91
8.1.110.0000.00921.08
8.1.100.0030.00621.08
8.1.90.0030.00621.21
8.1.80.0030.00620.91
8.1.70.0060.00321.00
8.1.60.0000.01021.14
8.1.50.0030.00720.93
8.1.40.0110.00320.95
8.1.30.0100.00021.23
8.1.20.0170.00621.12
8.1.10.0050.00521.48
8.1.00.0030.00721.13
8.0.300.0050.01020.25
8.0.290.0000.00920.63
8.0.280.0000.00921.16
8.0.270.0000.01120.89
8.0.260.0000.00820.46
8.0.250.0100.00020.90
8.0.240.0030.00920.83
8.0.230.0100.00020.83
8.0.220.0000.00920.77
8.0.210.0080.00020.63
8.0.200.0070.00320.90
8.0.190.0030.00620.68
8.0.180.0070.00720.57
8.0.170.0030.00620.73
8.0.160.0000.00920.59
8.0.150.0030.01020.31
8.0.140.0030.00620.66
8.0.130.0050.00013.38
8.0.120.0040.00720.73
8.0.110.0030.00620.52
8.0.100.0000.00920.29
8.0.90.0030.00620.53
8.0.80.0140.01220.56
8.0.70.0000.00920.42
8.0.60.0060.00320.30
8.0.50.0040.00420.41
8.0.30.0130.00920.54
8.0.20.0110.01120.69
8.0.10.0090.00020.81
8.0.00.0100.01320.59
7.4.330.0030.00316.71
7.4.320.0000.00820.64
7.4.300.0060.00320.61
7.4.290.0060.00820.29
7.4.280.0070.00320.24
7.4.270.0000.00820.40
7.4.260.0030.00620.24
7.4.250.0030.00620.50
7.4.240.0040.00420.36
7.4.230.0030.00620.32
7.4.220.0000.00820.16
7.4.210.0070.01020.52
7.4.200.0000.00920.45
7.4.150.0180.00320.45
7.4.140.0110.01720.30
7.4.130.0120.01120.37
7.4.120.0120.01220.38
7.4.110.0180.01120.15
7.4.100.0070.02120.37
7.4.90.0120.01520.22
7.4.80.0140.01320.35
7.4.70.0170.00320.33
7.4.60.0110.00820.41
7.4.50.0030.01420.51
7.4.40.0140.00720.57
7.4.30.0070.02020.58
7.4.00.0060.01018.68
7.3.330.0000.00513.18
7.3.320.0000.00513.23
7.3.310.0050.00519.84
7.3.300.0030.00520.01
7.3.290.0130.01120.01
7.3.280.0110.01219.93
7.3.270.0090.01320.02
7.3.260.0130.02020.05
7.3.250.0130.01320.22
7.3.240.0140.01120.08
7.3.230.0130.00620.09
7.3.210.0120.00919.95
7.3.200.0090.01119.95
7.3.190.0130.00720.09
7.3.180.0060.01320.23
7.3.170.0230.00320.00
7.3.160.0150.00720.07
7.3.10.0130.00320.45
7.3.00.0030.01320.33
7.2.330.0120.00920.00
7.2.320.0070.01420.33
7.2.310.0180.01120.64
7.2.300.0090.01219.99
7.2.290.0160.00320.14
7.2.130.0000.01520.88
7.2.120.0040.01520.65
7.2.110.0070.00720.78
7.2.100.0120.00620.57
7.2.90.0100.00720.78
7.2.80.0100.00720.95
7.2.70.0060.00620.80
7.2.60.0030.01220.95
7.2.50.0080.00420.86
7.2.40.0070.00720.64
7.2.30.0070.01020.80
7.2.20.0140.00020.91
7.2.10.0060.00620.75
7.2.00.0100.00922.26
7.1.250.0090.00619.80
7.1.200.0090.00319.64
7.1.100.0130.01022.18
7.1.70.0080.00521.16
7.1.60.0190.01220.72
7.1.50.0060.01921.04
7.1.00.0000.08325.89
7.0.200.0040.01120.67
7.0.60.0170.06325.37
7.0.50.0130.07317.84
7.0.40.0100.08723.34
7.0.30.0130.05023.25
7.0.20.0230.04723.29
7.0.10.0130.06323.60
7.0.00.0000.04723.43
5.6.280.0070.07324.43
5.6.210.0100.05724.26
5.6.200.0100.08318.21
5.6.190.0030.09023.82
5.6.180.0130.09023.75
5.6.170.0430.05023.81
5.6.160.0000.06323.65
5.6.150.0030.07018.11
5.6.140.0170.07318.18
5.6.130.0070.05018.14
5.6.120.0130.05324.54
5.6.110.0030.04724.38
5.6.100.0000.05324.59
5.6.90.0100.08724.37
5.6.80.0130.08023.78
5.5.350.0270.07724.12
5.5.340.0030.03718.01
5.5.330.0200.02723.71
5.5.320.0270.07023.73
5.5.310.0270.04323.61
5.5.300.0100.07717.93
5.5.290.0000.04318.02
5.5.280.0070.07324.20
5.5.270.0100.08324.35
5.5.260.0170.07724.40
5.5.250.0000.08724.02
5.5.240.0230.07023.60

preferences:
52.65 ms | 401 KiB | 5 Q