3v4l.org

run code in 300+ PHP versions simultaneously
<?php Locale::setDefault('no_NO'); $fmt = new IntlDateFormatter( Locale::getDefault(), IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo 'Formatted output is ' . $fmt->format(0)."\n"; Locale::setDefault('en_GB'); $fmt = new IntlDateFormatter( Locale::getDefault(), IntlDateFormatter::LONG , IntlDateFormatter::LONG , 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo 'Formatted output is ' . $fmt->parse(0)."\n"; echo "with DateTime:\n\t", IntlDateFormatter::formatObject( new DateTime(date("Y-mm-dd")), IntlDateFormatter::LONG, Locale::getDefault()), "\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.02021.50
8.3.50.0200.02524.42
8.3.40.0140.00322.08
8.3.30.0100.00722.17
8.3.20.0040.00423.32
8.3.10.0060.00326.78
8.3.00.0000.01023.63
8.2.180.0160.02623.41
8.2.170.0100.01022.96
8.2.160.0140.00725.11
8.2.150.0060.00324.18
8.2.140.0090.00025.39
8.2.130.0060.00326.16
8.2.120.0100.00021.63
8.2.110.0090.00324.94
8.2.100.0070.00721.93
8.2.90.0060.00322.49
8.2.80.0000.00921.75
8.2.70.0000.01021.75
8.2.60.0030.00721.80
8.2.50.0000.01121.75
8.2.40.0050.00523.33
8.2.30.0000.00923.76
8.2.20.0030.00621.88
8.2.10.0050.00521.95
8.2.00.0090.00022.05
8.1.280.0160.02325.92
8.1.270.0060.00326.84
8.1.260.0030.00626.35
8.1.250.0090.00028.09
8.1.240.0070.00423.43
8.1.230.0070.00721.64
8.1.220.0030.00621.77
8.1.210.0060.00321.50
8.1.200.0030.00921.37
8.1.190.0000.01121.36
8.1.180.0040.00721.65
8.1.170.0030.00622.78
8.1.160.0050.00525.24
8.1.150.0030.00622.10
8.1.140.0100.00023.52
8.1.130.0000.00821.76
8.1.120.0060.00321.48
8.1.110.0030.00621.65
8.1.100.0030.00621.54
8.1.90.0060.00321.53
8.1.80.0030.00621.52
8.1.70.0060.00321.75
8.1.60.0000.00921.82
8.1.50.0000.01021.75
8.1.40.0090.00021.81
8.1.30.0030.00722.01
8.1.20.0060.00321.91
8.1.10.0060.00321.74
8.1.00.0060.00321.59
8.0.300.0000.00921.04
8.0.290.0030.00621.13
8.0.280.0040.00421.70
8.0.270.0040.00421.26
8.0.260.0030.00521.27
8.0.250.0070.00321.36
8.0.240.0100.00021.05
8.0.230.0000.00921.32
8.0.220.0000.00821.10
8.0.210.0030.00621.29
8.0.200.0000.00821.07
8.0.190.0000.01021.05
8.0.180.0090.00020.98
8.0.170.0030.00621.20
8.0.160.0040.00421.14
8.0.150.0040.00421.07
8.0.140.0060.00321.04
8.0.130.0030.00313.30
8.0.120.0030.00721.14
8.0.110.0060.00321.12
8.0.100.0050.00521.00
8.0.90.0000.00921.08
8.0.80.0040.01521.04
8.0.70.0030.00721.38
8.0.60.0090.00021.35
8.0.50.0030.00621.05
8.0.30.0100.01121.53
8.0.20.0110.01121.44
8.0.10.0050.00521.43
8.0.00.0090.01121.06
7.4.330.0050.00015.08
7.4.320.0030.00520.86
7.4.300.0080.00020.83
7.4.290.0060.00320.89
7.4.280.0030.00620.81
7.4.270.0060.00320.85
7.4.260.0040.00420.88
7.4.250.0060.00320.71
7.4.240.0030.00620.88
7.4.230.0040.00420.76
7.4.220.0170.01420.63
7.4.210.0070.01520.88
7.4.200.0030.00621.02
7.4.160.0060.01220.90
7.4.150.0070.01420.72
7.4.140.0110.01220.87
7.4.130.0130.01120.70
7.4.120.0120.01020.83
7.4.110.0060.01620.71
7.4.100.0220.00720.83
7.4.90.0110.01020.77
7.4.80.0060.01320.59
7.4.70.0150.00620.71
7.4.60.0080.01220.83
7.4.50.0040.00820.75
7.4.40.0080.01220.74
7.4.30.0120.01220.79
7.4.00.0030.01419.13
7.3.330.0020.00213.02
7.3.320.0000.00513.04
7.3.310.0060.00320.46
7.3.300.0000.00920.39
7.3.290.0000.00920.46
7.3.280.0100.01220.49
7.3.270.0070.01420.78
7.3.260.0130.00620.82
7.3.250.0080.01320.79
7.3.240.0090.01220.76
7.3.230.0120.00820.76
7.3.210.0140.00620.57
7.3.200.0160.00320.57
7.3.190.0110.01120.93
7.3.180.0100.01020.84
7.3.170.0180.00320.95
7.3.160.0090.01220.47
7.2.330.0100.01020.58
7.2.320.0140.01420.82
7.2.310.0160.01320.79
7.2.300.0180.00920.84
7.2.290.0090.01221.05
7.2.60.0130.00721.05
7.2.00.0290.01623.70
7.1.200.0100.00719.87
7.1.100.0140.00722.71
7.1.70.0100.00521.36
7.1.60.0060.00921.65
7.1.50.0060.01221.27
7.1.40.0070.01020.93
7.1.30.0060.00621.04
7.1.20.0060.00621.18
7.1.10.0050.00520.62
7.1.00.0060.01420.65
7.0.200.0030.01521.03
7.0.190.0000.01220.98
7.0.180.0060.00920.52
7.0.170.0050.00920.30
7.0.160.0030.00920.79
7.0.150.0000.01120.48
7.0.140.0030.01020.63
7.0.130.0080.00820.56
7.0.120.0080.01320.77
7.0.110.0080.00420.77
7.0.100.0060.01520.52
7.0.90.0000.02020.40
7.0.80.0000.01620.43
7.0.70.0070.00720.34
7.0.60.0080.00520.28
7.0.50.0040.01320.08
7.0.40.0000.01318.72
7.0.30.0000.01118.36
7.0.20.0100.00018.50
7.0.10.0030.01218.34
7.0.00.0030.00618.45
5.6.300.0030.04225.00
5.6.290.0030.05025.02
5.6.280.0030.04424.83
5.6.270.0100.07724.89
5.6.260.0000.04724.80
5.6.250.0000.08924.84
5.6.240.0160.06324.81
5.6.230.0160.04124.96
5.6.220.0030.05824.99
5.6.210.0100.04024.87
5.6.200.0030.04324.92
5.6.190.0000.06124.80
5.6.180.0000.05324.79
5.6.170.0030.07024.80
5.6.160.0030.04924.81
5.6.150.0000.04924.80
5.6.140.0000.05224.84
5.6.130.0030.04324.80
5.6.120.0030.05124.66
5.6.110.0030.04424.77
5.6.100.0030.04324.71
5.6.90.0070.08324.79
5.6.80.0030.04124.12
5.6.70.0070.05724.10
5.6.60.0030.06824.16
5.6.50.0030.04124.20
5.6.40.0030.06524.14
5.6.30.0070.08024.18
5.6.20.0030.06524.14
5.6.10.0030.04324.11
5.6.00.0000.05224.13
5.5.380.0100.07717.52
5.5.370.0000.05817.50
5.5.360.0000.05117.40
5.5.350.0070.03617.45
5.5.340.0000.06418.03
5.5.330.0030.05017.71
5.5.320.0030.04318.00
5.5.310.0070.03918.00
5.5.300.0000.04317.70
5.5.290.0100.03918.03
5.5.280.0000.05117.74
5.5.270.0060.05117.98
5.5.260.0100.05717.94
5.5.250.0070.06917.55
5.5.240.0030.04517.09
5.5.230.0070.07217.40
5.5.220.0000.04017.40
5.5.210.0070.04917.44
5.5.200.0030.04117.47
5.5.190.0000.05917.43
5.5.180.0000.04117.38
5.5.160.0000.04017.05
5.5.150.0030.03817.32
5.5.140.0060.03417.41
5.5.130.0060.03417.41
5.5.120.0000.06017.20
5.5.110.0030.06417.28
5.5.100.0030.04817.12
5.5.90.0060.03817.21
5.5.80.0030.03617.11
5.5.70.0030.05617.18
5.5.60.0000.07616.94
5.5.50.0100.05817.32
5.5.40.0000.04417.18
5.5.30.0000.03917.07
5.5.20.0100.04617.27
5.5.10.0040.04917.29
5.5.00.0030.03717.36
5.4.450.0040.04522.94
5.4.440.0030.04222.88
5.4.430.0100.03422.91
5.4.420.0070.07122.84
5.4.410.0070.08122.76
5.4.400.0000.04122.62
5.4.390.0030.06222.58
5.4.380.0070.04022.51
5.4.370.0030.04022.55
5.4.360.0070.04122.49
5.4.350.0070.04922.40
5.4.340.0030.07622.49
5.4.320.0030.03922.52
5.4.310.0030.04122.55
5.4.300.0000.04222.70
5.4.290.0030.03822.48
5.4.280.0070.07822.56
5.4.270.0000.04222.55
5.4.260.0030.06622.48
5.4.250.0030.04422.65
5.4.240.0030.04322.57
5.4.230.0100.06522.48
5.4.220.0000.05822.72
5.4.210.0070.03622.61
5.4.200.0000.04322.39
5.4.190.0000.06822.39
5.4.180.0030.05422.49
5.4.170.0000.04422.50
5.4.160.0030.03922.48
5.4.150.0030.03922.69
5.4.140.0060.04020.14
5.4.130.0000.05520.02
5.4.120.0000.05920.11
5.4.110.0030.06920.22
5.4.100.0030.04920.13
5.4.90.0030.04520.05
5.4.80.0070.07020.03
5.4.70.0000.05820.13
5.4.60.0070.07220.32
5.4.50.0100.06920.20
5.4.40.0030.03520.19
5.4.30.0100.07519.91
5.4.20.0070.05020.12
5.4.10.0100.03220.04
5.4.00.0070.03319.25

preferences:
35.98 ms | 401 KiB | 5 Q