3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = new DateTime(); Locale::setDefault('en_US'); $formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo $formatter->format($time)."\n"; Locale::setDefault('en_GB'); $formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo $formatter->format($time)."\n"; Locale::setDefault('no_NO'); $formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::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.60.0100.00720.38
8.3.50.0100.00721.80
8.3.40.0150.00621.46
8.3.30.0080.00821.53
8.3.20.0030.00622.70
8.3.10.0090.00026.23
8.3.00.0060.00322.75
8.2.180.0140.01120.38
8.2.170.0100.01022.96
8.2.160.0070.01024.71
8.2.150.0080.00424.18
8.2.140.0040.00424.95
8.2.130.0030.00626.16
8.2.120.0030.00621.13
8.2.110.0050.00524.84
8.2.100.0060.00621.53
8.2.90.0060.00322.01
8.2.80.0050.00521.25
8.2.70.0060.00321.25
8.2.60.0030.00621.54
8.2.50.0000.00921.25
8.2.40.0000.01022.75
8.2.30.0030.00623.20
8.2.20.0060.00321.34
8.2.10.0030.00621.39
8.2.00.0000.00921.46
8.1.280.0130.00325.92
8.1.270.0100.00026.45
8.1.260.0030.00626.35
8.1.250.0030.00628.09
8.1.240.0070.00325.23
8.1.230.0060.00621.16
8.1.220.0030.00621.26
8.1.210.0000.01120.98
8.1.200.0070.00420.98
8.1.190.0060.00320.86
8.1.180.0030.00720.89
8.1.170.0060.00322.05
8.1.160.0080.00024.68
8.1.150.0000.00821.61
8.1.140.0060.00322.99
8.1.130.0050.00321.21
8.1.120.0060.00321.02
8.1.110.0000.00821.05
8.1.100.0030.00620.94
8.1.90.0040.00420.99
8.1.80.0030.00620.90
8.1.70.0050.00321.07
8.1.60.0090.00021.16
8.1.50.0030.00721.13
8.1.40.0030.00721.17
8.1.30.0070.00321.38
8.1.20.0040.00421.31
8.1.10.0090.00020.96
8.1.00.0030.00621.08
8.0.300.0030.00620.54
8.0.290.0060.00320.38
8.0.280.0060.00321.12
8.0.270.0050.00320.77
8.0.260.0000.00720.70
8.0.250.0050.00520.51
8.0.240.0070.00320.55
8.0.230.0060.00320.71
8.0.220.0040.00420.56
8.0.210.0000.00820.33
8.0.200.0020.00520.39
8.0.190.0060.00320.66
8.0.180.0030.00620.50
8.0.170.0060.00320.52
8.0.160.0040.00420.48
8.0.150.0030.00620.39
8.0.140.0000.00920.47
8.0.130.0030.00313.53
8.0.120.0050.00520.56
8.0.110.0050.00520.66
8.0.100.0040.00420.45
8.0.90.0000.00920.63
8.0.80.0000.01720.54
8.0.70.0000.00920.15
8.0.60.0000.00820.66
8.0.50.0030.00620.33
8.0.30.0100.01120.62
8.0.20.0120.00920.83
8.0.10.0050.00520.79
8.0.00.0110.00820.28
7.4.330.0000.00615.08
7.4.320.0070.00420.12
7.4.300.0030.00620.28
7.4.290.0030.00519.94
7.4.280.0030.00620.32
7.4.270.0030.00620.09
7.4.260.0040.00420.14
7.4.250.0000.01120.29
7.4.240.0070.00120.15
7.4.230.0040.00420.11
7.4.220.0140.01420.11
7.4.210.0080.00820.22
7.4.200.0000.00820.45
7.4.160.0060.01120.19
7.4.150.0130.01020.16
7.4.140.0080.01220.08
7.4.130.0150.01620.43
7.4.120.0110.00820.16
7.4.110.0040.01520.04
7.4.100.0100.01620.00
7.4.90.0100.01320.21
7.4.80.0110.01220.21
7.4.70.0140.00720.23
7.4.60.0100.01420.21
7.4.50.0060.00319.81
7.4.40.0130.01320.01
7.4.30.0060.01320.16
7.4.00.0120.00618.30
7.3.330.0000.00513.25
7.3.320.0050.00013.25
7.3.310.0000.00819.89
7.3.300.0040.00719.49
7.3.290.0040.00419.49
7.3.280.0120.01019.86
7.3.270.0200.00020.02
7.3.260.0160.00319.88
7.3.240.0070.01420.06
7.3.230.0120.01220.02
7.3.210.0100.00920.17
7.3.200.0150.00919.95
7.3.190.0030.01619.78
7.3.180.0060.01219.68
7.3.170.0030.01420.07
7.3.160.0070.01119.64
7.2.330.0040.02020.11
7.2.320.0100.00920.18
7.2.310.0180.00620.32
7.2.300.0120.00820.22
7.2.290.0160.00620.10
7.2.60.0040.01120.18
7.2.00.0030.01022.94
7.1.200.0090.00619.46
7.1.100.0160.01021.72
7.1.70.0000.01320.91
7.1.60.0100.01020.87
7.1.50.0000.01220.77
7.1.00.0030.07026.20
7.0.200.0100.00318.91
7.0.60.0130.07323.39
7.0.50.0200.06717.79
7.0.40.0070.06323.33
7.0.30.0170.07323.58
7.0.20.0470.07323.20
7.0.10.0070.04023.50
7.0.00.0100.09023.20
5.6.280.0030.03324.55
5.6.210.0200.06024.05
5.6.200.0000.04718.23
5.6.190.0230.07023.58
5.6.180.0370.04723.77
5.6.170.0200.04723.55
5.6.160.0130.04323.80
5.6.150.0070.05318.16
5.6.140.0030.07018.12
5.6.130.0100.03718.14
5.6.120.0070.04324.46
5.6.110.0100.08024.30
5.6.100.0030.08724.48
5.6.90.0070.07724.24
5.6.80.0130.08023.68
5.5.350.0230.03024.11
5.5.340.0070.07717.92
5.5.330.0000.06723.41
5.5.320.0170.04323.46
5.5.310.0300.05023.69
5.5.300.0000.04018.01
5.5.290.0000.05318.02
5.5.280.0100.04024.23
5.5.270.0130.04324.48
5.5.260.0000.05024.32
5.5.250.0100.07323.91
5.5.240.0100.07023.48
5.4.450.0600.05322.32
5.4.440.0530.06022.60
5.4.430.0600.06722.22
5.4.420.0500.06022.55
5.4.410.0530.05722.32
5.4.400.0700.04722.20
5.4.390.0530.06721.89
5.4.380.0600.05722.12
5.4.370.0570.06022.14
5.4.360.0700.07021.97
5.4.350.0670.06722.17
5.4.340.0500.06021.86
5.4.320.0600.05322.22
5.4.310.0830.06721.88
5.4.300.0700.04721.93
5.4.290.0770.05321.90
5.4.280.0670.04321.88
5.4.270.0430.06322.12
5.4.260.0530.05321.86
5.4.250.0570.05021.98
5.4.240.0630.04721.86
5.4.230.0600.05022.08
5.4.220.0570.05322.19
5.4.210.0500.06022.08
5.4.200.0530.06021.88
5.4.190.0530.05322.19
5.4.180.0470.06022.12
5.4.170.0600.05321.85
5.4.160.0430.06022.14
5.4.150.0570.05322.08
5.4.140.0730.04719.23
5.4.130.0600.04019.33
5.4.120.0570.04319.32
5.4.110.0430.06319.19
5.4.100.0530.05019.26
5.4.90.0600.04019.29
5.4.80.0530.05319.36
5.4.70.0470.05319.32
5.4.60.0500.05319.58
5.4.50.0470.05719.16
5.4.40.0630.05719.23
5.4.30.0730.06719.31
5.4.20.0470.06019.34
5.4.10.0670.06319.31
5.4.00.0600.05018.96

preferences:
61.92 ms | 400 KiB | 5 Q