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"; Locale::setDefault('en_GB'); $formatter = new IntlDateFormatter(Locale::getDefault(), ntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo $formatter->format($time)."\n"; Locale::setDefault('no_NO'); $formatter = new IntlDateFormatter(Locale::getDefault(), ntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo $formatter->format($time)."\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.70.0220.00622.10
8.3.60.0140.01120.13
8.3.50.0100.01423.74
8.3.40.0100.00721.54
8.3.30.0100.01421.50
8.3.20.0060.00322.91
8.3.10.0030.00626.16
8.3.00.0090.00023.00
8.2.180.0070.01820.38
8.2.170.0190.00622.96
8.2.160.0100.01024.82
8.2.150.0000.00924.18
8.2.140.0060.00324.73
8.2.130.0030.00626.16
8.2.120.0060.00321.13
8.2.110.0120.00024.26
8.2.100.0030.01021.16
8.2.90.0060.00321.25
8.2.80.0070.00423.11
8.2.70.0030.00621.28
8.2.60.0000.01021.18
8.2.50.0030.00621.00
8.2.40.0070.00422.95
8.2.30.0040.00423.28
8.2.20.0000.00921.23
8.2.10.0030.00621.45
8.2.00.0030.00621.42
8.1.280.0140.01025.92
8.1.270.0000.00926.47
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00724.84
8.1.230.0100.00322.61
8.1.220.0060.00321.16
8.1.210.0030.00620.98
8.1.200.0030.00720.75
8.1.190.0000.00920.97
8.1.180.0000.01020.98
8.1.170.0040.00422.17
8.1.160.0000.00924.63
8.1.150.0090.00023.48
8.1.140.0030.00623.10
8.1.130.0050.00321.11
8.1.120.0000.00821.12
8.1.110.0040.00421.14
8.1.100.0030.00621.14
8.1.90.0080.00021.03
8.1.80.0050.00521.07
8.1.70.0000.00920.88
8.1.60.0130.00021.10
8.1.50.0060.00321.13
8.1.40.0100.00020.89
8.1.30.0000.01021.07
8.1.20.0030.00621.30
8.1.10.0060.00321.14
8.1.00.0000.00921.12
8.0.300.0040.00422.48
8.0.290.0000.00920.50
8.0.280.0000.00821.04
8.0.270.0000.00820.66
8.0.260.0000.00820.80
8.0.250.0000.00920.50
8.0.240.0030.00620.58
8.0.230.0080.00020.39
8.0.220.0000.00820.47
8.0.210.0030.00520.45
8.0.200.0000.00720.39
8.0.190.0030.00620.53
8.0.180.0060.00320.44
8.0.170.0030.00620.57
8.0.160.0050.00520.43
8.0.150.0000.00820.32
8.0.140.0030.00620.54
8.0.130.0030.00313.57
8.0.120.0000.00920.41
8.0.110.0090.00020.70
8.0.100.0040.00420.53
8.0.90.0030.00620.61
8.0.80.0070.01120.77
8.0.70.0030.00620.57
8.0.60.0030.00620.41
8.0.50.0060.00320.63
8.0.30.0040.01720.83
8.0.20.0080.01320.76
8.0.10.0030.00620.79
8.0.00.0050.01520.44
7.4.330.0020.00215.13
7.4.320.0000.00720.25
7.4.300.0000.00720.07
7.4.290.0000.00820.22
7.4.280.0060.00320.15
7.4.270.0030.00620.07
7.4.260.0040.00420.13
7.4.250.0040.00420.17
7.4.240.0040.00520.24
7.4.230.0050.00320.25
7.4.220.0130.01020.15
7.4.210.0110.00720.30
7.4.200.0000.00820.35
7.4.160.0000.01720.00
7.4.150.0130.01020.13
7.4.140.0120.00920.18
7.4.130.0070.01320.23
7.4.120.0130.00820.33
7.4.110.0120.00920.05
7.4.100.0070.01420.23
7.4.90.0130.00620.20
7.4.80.0110.01120.38
7.4.70.0080.01120.20
7.4.60.0100.01020.30
7.4.50.0030.00320.10
7.4.40.0120.01220.21
7.4.30.0180.00919.90
7.4.00.0030.01318.75
7.3.330.0060.00013.34
7.3.320.0000.00513.28
7.3.310.0030.00619.88
7.3.300.0040.00419.74
7.3.290.0060.01319.70
7.3.280.0120.00719.92
7.3.270.0090.01020.06
7.3.260.0090.00920.05
7.3.250.0100.00919.97
7.3.240.0120.01119.89
7.3.230.0070.01319.77
7.3.210.0100.01020.00
7.3.200.0090.01819.45
7.3.190.0100.01120.09
7.3.180.0140.01020.11
7.3.170.0160.00620.19
7.3.160.0110.00820.01
7.2.330.0230.00320.30
7.2.320.0150.00619.98
7.2.310.0060.01320.23
7.2.300.0150.00620.29
7.2.290.0070.01320.45
7.2.60.0380.01119.91
7.1.200.0150.00419.00
7.1.70.0000.00921.08
7.1.60.0100.01721.21
7.1.50.0100.01320.67
7.1.00.0030.07326.04
7.0.200.0030.01018.57
7.0.60.0100.08023.29
7.0.50.0030.05317.83
7.0.40.0070.05323.26
7.0.30.0200.08323.37
7.0.20.0370.07323.22
7.0.10.0030.06723.24
7.0.00.0100.08323.23
5.6.280.0100.03724.36
5.6.210.0100.08323.93
5.6.200.0070.08318.18
5.6.190.0070.05023.58
5.6.180.0370.05723.51
5.6.170.0300.03323.60
5.6.160.0130.07723.62
5.6.150.0100.07718.13
5.6.140.0030.04018.12
5.6.130.0000.05718.11
5.6.120.0070.04024.24
5.6.110.0130.08024.17
5.6.100.0130.04024.19
5.6.90.0170.08024.23
5.6.80.0100.04323.86
5.5.350.0270.04023.83
5.5.340.0000.04017.93
5.5.330.0170.06323.43
5.5.320.0200.04323.50
5.5.310.0270.03723.72
5.5.300.0130.07717.95
5.5.290.0100.05717.88
5.5.280.0030.04324.09
5.5.270.0070.09024.04
5.5.260.0170.06024.10
5.5.250.0130.05723.89
5.5.240.0000.04323.41
5.4.450.0470.07319.53
5.4.440.0770.07719.61
5.4.430.0600.08019.64
5.4.420.0570.07319.43
5.4.410.0630.06319.39
5.4.400.0630.07319.15
5.4.390.0470.06318.77
5.4.380.0330.06018.93
5.4.370.0170.05019.30
5.4.360.0400.05719.26
5.4.350.0630.05319.15
5.4.340.0430.06718.79
5.4.320.0600.04719.20
5.4.310.0530.05318.99
5.4.300.0530.04719.12
5.4.290.0400.05018.77
5.4.280.0100.05718.77
5.4.270.0070.06019.25
5.4.260.0330.05319.16
5.4.250.0670.06718.99
5.4.240.0530.06019.15
5.4.230.0630.07319.14
5.4.220.0700.07718.79
5.4.210.0730.07318.99
5.4.200.0630.06319.29
5.4.190.0570.06318.76
5.4.180.0230.06319.24
5.4.170.0170.07019.14
5.4.160.0400.07318.88
5.4.150.0730.06019.28
5.4.140.0370.06316.42
5.4.130.0100.05016.49
5.4.120.0070.05716.51
5.4.110.0500.08016.41
5.4.100.0600.06716.36
5.4.90.0770.06716.43
5.4.80.0630.05016.40
5.4.70.0700.05716.54
5.4.60.0800.05316.50
5.4.50.0830.05316.47
5.4.40.0570.06316.44
5.4.30.0730.05316.27
5.4.20.0700.05316.35
5.4.10.0770.06716.33
5.4.00.0670.06015.86

preferences:
60.37 ms | 401 KiB | 5 Q