3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = new DateTime(); Locale::setDefault('en_GB'); echo IntlDateFormatter::formatObject($time)."\n"; echo IntlDateFormatter::formatObject($time, [IntlDateFormatter::NONE, IntlDateFormatter::MEDIUM])."\n"; echo IntlDateFormatter::formatObject($time, [IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE])."\n"; Locale::setDefault('no_NO'); echo IntlDateFormatter::formatObject($time)."\n"; echo IntlDateFormatter::formatObject($time, [IntlDateFormatter::NONE, IntlDateFormatter::MEDIUM])."\n"; echo IntlDateFormatter::formatObject($time, [IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE])."\n";

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.0070.01820.00
8.3.50.0140.00721.67
8.3.40.0100.00721.51
8.3.30.0100.00721.34
8.3.20.0060.00322.79
8.3.10.0060.00326.28
8.3.00.0060.00322.75
8.2.180.0130.00720.13
8.2.170.0130.01022.96
8.2.160.0160.00324.87
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.01021.13
8.2.110.0110.00022.70
8.2.100.0060.00621.41
8.2.90.0030.00721.81
8.2.80.0070.00321.25
8.2.70.0050.00721.00
8.2.60.0060.00621.18
8.2.50.0000.00921.13
8.2.40.0070.00322.77
8.2.30.0000.00823.06
8.2.20.0040.00421.22
8.2.10.0040.00421.34
8.2.00.0060.00321.24
8.1.280.0030.01325.92
8.1.270.0000.00926.34
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0130.01023.20
8.1.230.0040.01121.03
8.1.220.0030.00621.16
8.1.210.0060.00320.86
8.1.200.0110.00420.73
8.1.190.0030.00620.73
8.1.180.0000.00920.91
8.1.170.0000.00922.33
8.1.160.0080.00624.48
8.1.150.0080.00023.37
8.1.140.0090.00023.00
8.1.130.0060.00321.18
8.1.120.0050.00320.99
8.1.110.0000.01020.94
8.1.100.0030.00620.90
8.1.90.0080.00021.00
8.1.80.0060.00320.89
8.1.70.0050.00520.91
8.1.60.0030.00721.13
8.1.50.0030.00721.08
8.1.40.0000.01220.96
8.1.30.0030.00621.31
8.1.20.0000.00821.26
8.1.10.0070.00220.95
8.1.00.0040.00421.13
8.0.300.0040.00420.47
8.0.290.0000.00820.38
8.0.280.0050.00321.08
8.0.270.0040.00420.72
8.0.260.0040.00420.63
8.0.250.0050.00520.40
8.0.240.0080.00320.48
8.0.230.0030.00720.33
8.0.220.0050.00520.40
8.0.210.0030.00620.34
8.0.200.0000.00820.59
8.0.190.0040.00820.21
8.0.180.0030.00620.40
8.0.170.0040.00820.44
8.0.160.0000.00820.44
8.0.150.0030.00620.32
8.0.140.0040.00820.35
8.0.130.0000.00513.55
8.0.120.0030.00620.35
8.0.110.0030.00620.66
8.0.100.0030.00620.37
8.0.90.0000.00920.29
8.0.80.0070.01420.66
8.0.70.0050.00520.66
8.0.60.0060.00320.64
8.0.50.0030.00620.55
8.0.30.0080.01420.61
8.0.20.0120.00920.57
8.0.10.0000.00820.46
8.0.00.0130.01120.20
7.4.330.0000.00515.15
7.4.320.0040.00420.04
7.4.300.0000.00720.01
7.4.290.0070.00320.13
7.4.280.0060.00320.03
7.4.270.0070.00320.04
7.4.260.0040.00419.84
7.4.250.0110.00019.98
7.4.240.0020.00620.02
7.4.230.0040.00419.98
7.4.220.0090.02120.07
7.4.210.0000.01720.07
7.4.200.0000.00920.18
7.4.160.0060.01219.96
7.4.150.0070.01420.04
7.4.140.0130.01220.04
7.4.130.0110.01520.09
7.4.120.0030.01619.98
7.4.110.0200.00319.98
7.4.100.0150.01219.98
7.4.90.0090.01220.08
7.4.80.0140.00720.15
7.4.70.0090.01520.02
7.4.60.0110.00820.18
7.4.50.0030.00619.91
7.4.40.0000.01820.16
7.4.30.0210.01020.00
7.4.00.0090.00618.48
7.3.330.0060.00013.35
7.3.320.0000.00513.20
7.3.310.0000.00819.56
7.3.300.0080.00019.81
7.3.290.0050.01119.63
7.3.280.0060.01419.83
7.3.270.0130.00920.10
7.3.260.0080.01620.05
7.3.240.0100.01219.78
7.3.230.0180.00620.11
7.3.210.0070.01119.84
7.3.200.0040.01619.80
7.3.190.0180.00619.81
7.3.180.0000.01919.98
7.3.170.0030.01920.28
7.3.160.0160.01219.63
7.3.10.0030.01419.81
7.3.00.0160.00719.70
7.2.330.0120.01219.86
7.2.320.0140.01219.93
7.2.310.0130.01220.13
7.2.300.0200.00320.30
7.2.290.0070.01720.42
7.2.130.0120.00920.00
7.2.120.0160.01620.24
7.2.110.0100.01320.00
7.2.100.0130.01920.04
7.2.90.0070.00720.20
7.2.80.0070.01019.96
7.2.70.0070.00720.20
7.2.60.0050.01020.00
7.2.50.0120.00020.00
7.2.40.0060.00920.06
7.2.30.0130.00320.07
7.2.20.0120.00619.97
7.2.10.0090.00619.82
7.2.00.0030.01221.52
7.1.250.0100.01019.30
7.1.200.0000.00918.85
7.1.100.0040.01221.96
7.1.70.0000.01220.75
7.1.60.0070.02120.97
7.1.50.0130.01320.77
7.1.00.0030.07726.06
7.0.200.0070.00718.61
7.0.60.0170.08023.31
7.0.50.0070.05017.93
7.0.40.0170.05023.17
7.0.30.0200.04323.28
7.0.20.0470.08323.14
7.0.10.0100.08723.13
7.0.00.0000.04723.10
5.6.280.0000.04024.09
5.6.210.0070.05023.88
5.6.200.0000.08318.17
5.6.190.0070.08723.66
5.6.180.0470.05023.59
5.6.170.0270.08323.57
5.6.160.0100.08723.52
5.6.150.0030.04018.18
5.6.140.0170.05718.20
5.6.130.0030.04318.21
5.6.120.0170.08024.22
5.6.110.0070.06324.44
5.6.100.0030.04324.50
5.6.90.0100.08324.19
5.6.80.0030.04023.66
5.5.350.0400.07323.72
5.5.340.0070.07317.92
5.5.330.0070.09023.38
5.5.320.0200.04723.11
5.5.310.0300.07323.36
5.5.300.0030.05317.96
5.5.290.0030.08317.94
5.5.280.0130.04724.11
5.5.270.0070.08724.00
5.5.260.0000.04724.07
5.5.250.0070.04723.97
5.5.240.0030.08023.29
5.4.450.0870.04319.62
5.4.440.0030.07019.45
5.4.430.0170.06319.47
5.4.420.0100.06319.47
5.4.410.0130.06019.34
5.4.400.0130.05718.95
5.4.390.0130.06319.15
5.4.380.0300.07718.89
5.4.370.0070.06319.25
5.4.360.0170.05718.89
5.4.350.0170.05719.10
5.4.340.0070.06719.21
5.4.320.0270.06019.15
5.4.310.0170.06019.01
5.4.300.0400.05318.90
5.4.290.0530.05319.21
5.4.280.0270.05719.29
5.4.270.0130.07719.11
5.4.260.0430.05719.15
5.4.250.0200.06719.00
5.4.240.0200.07719.01
5.4.230.0330.05318.72
5.4.220.0300.08019.05
5.4.210.0330.06718.97
5.4.200.0300.05319.14
5.4.190.0100.06018.89
5.4.180.0300.06719.15
5.4.170.0330.05019.12
5.4.160.0270.06718.88
5.4.150.0270.06018.87
5.4.140.0200.07016.31
5.4.130.0100.05716.39
5.4.120.0670.06316.32
5.4.110.0570.05716.59
5.4.100.0600.04716.42
5.4.90.0400.06716.50
5.4.80.0630.05716.56
5.4.70.0130.05016.49
5.4.60.0230.04016.50
5.4.50.0200.05716.43
5.4.40.0030.06716.53
5.4.30.0130.05716.35
5.4.20.0430.05316.43
5.4.10.0570.06016.49
5.4.00.0730.05315.72

preferences:
60.06 ms | 400 KiB | 5 Q