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::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo 'Formatted output is ' . $fmt->format(0)."\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.0150.01120.75
8.3.50.0160.00924.10
8.3.40.0100.00721.68
8.3.30.0070.01321.54
8.3.20.0000.00823.46
8.3.10.0040.00426.90
8.3.00.0060.00623.13
8.2.180.0120.00922.50
8.2.170.0100.00622.96
8.2.160.0100.00625.38
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0060.00326.16
8.2.120.0070.00321.50
8.2.110.0090.00325.37
8.2.100.0100.00321.93
8.2.90.0090.00022.48
8.2.80.0060.00321.63
8.2.70.0000.00921.63
8.2.60.0060.00322.03
8.2.50.0070.00321.36
8.2.40.0060.00323.42
8.2.30.0060.00323.63
8.2.20.0040.00421.59
8.2.10.0060.00321.90
8.2.00.0060.00322.07
8.1.280.0070.01725.92
8.1.270.0090.00027.04
8.1.260.0090.00026.35
8.1.250.0030.00628.09
8.1.240.0080.00325.70
8.1.230.0140.00021.79
8.1.220.0030.00621.79
8.1.210.0000.00921.48
8.1.200.0080.00321.25
8.1.190.0090.00021.25
8.1.180.0090.00021.39
8.1.170.0000.00922.71
8.1.160.0080.00025.08
8.1.150.0000.00923.75
8.1.140.0040.00423.51
8.1.130.0040.00421.79
8.1.120.0050.00321.51
8.1.110.0030.00621.27
8.1.100.0040.00421.55
8.1.90.0030.00521.32
8.1.80.0000.00821.49
8.1.70.0030.00621.44
8.1.60.0100.00021.50
8.1.50.0090.00021.55
8.1.40.0040.00821.49
8.1.30.0090.00021.80
8.1.20.0030.00621.87
8.1.10.0030.00621.44
8.1.00.0030.00621.42
8.0.300.0060.00320.72
8.0.290.0050.00520.75
8.0.280.0000.00821.50
8.0.270.0030.00521.19
8.0.260.0000.00821.15
8.0.250.0060.00320.73
8.0.240.0030.00620.85
8.0.230.0000.00920.77
8.0.220.0000.00920.84
8.0.210.0000.00820.65
8.0.200.0000.00720.69
8.0.190.0030.00620.84
8.0.180.0050.00520.70
8.0.170.0000.00920.89
8.0.160.0030.00620.80
8.0.150.0000.00820.72
8.0.140.0050.00320.75
8.0.130.0030.00313.34
8.0.120.0000.00920.84
8.0.110.0080.00021.11
8.0.100.0000.01021.17
8.0.90.0090.00021.00
8.0.80.0060.01521.16
8.0.70.0000.00920.72
8.0.60.0030.00621.15
8.0.50.0030.00621.04
8.0.30.0110.01021.18
8.0.20.0100.01321.31
8.0.10.0030.00621.23
8.0.00.0060.01320.68
7.4.330.0050.00015.08
7.4.320.0000.00920.46
7.4.300.0040.00420.60
7.4.290.0030.00520.62
7.4.280.0030.00620.57
7.4.270.0080.00020.43
7.4.260.0000.00820.60
7.4.250.0040.00420.63
7.4.240.0050.00320.61
7.4.230.0040.00420.54
7.4.220.0130.00720.75
7.4.210.0140.00320.55
7.4.200.0030.00520.73
7.4.160.0220.00420.48
7.4.150.0130.00720.31
7.4.140.0150.01320.45
7.4.130.0100.01020.50
7.4.120.0090.01220.51
7.4.110.0030.01720.66
7.4.100.0120.00920.36
7.4.90.0120.00820.45
7.4.80.0080.01220.34
7.4.70.0080.01220.50
7.4.60.0040.01520.32
7.4.50.0050.00520.21
7.4.40.0180.00320.60
7.4.30.0100.01020.52
7.4.00.0060.01318.82
7.3.330.0050.00013.26
7.3.320.0050.00013.04
7.3.310.0030.00519.96
7.3.300.0040.00420.07
7.3.290.0100.00720.42
7.3.280.0120.01020.25
7.3.270.0100.01320.69
7.3.260.0130.00620.55
7.3.250.0080.01220.64
7.3.240.0130.01020.48
7.3.230.0080.01220.80
7.3.210.0090.01120.77
7.3.200.0070.01820.49
7.3.190.0160.00320.84
7.3.180.0140.01020.27
7.3.170.0090.01520.48
7.3.160.0080.01220.44
7.3.10.0090.01120.44
7.3.00.0170.00220.44
7.2.330.0080.01320.53
7.2.320.0110.01120.84
7.2.310.0170.00820.67
7.2.300.0150.01220.70
7.2.290.0100.01020.56
7.2.130.0100.01220.66
7.2.120.0070.01220.44
7.2.110.0100.00920.58
7.2.100.0070.00920.40
7.2.90.0120.00720.68
7.2.80.0100.00920.60
7.2.70.0110.00920.38
7.2.60.0110.00520.54
7.2.50.0090.00920.44
7.2.40.0110.00820.51
7.2.30.0140.00420.38
7.2.20.0110.00220.49
7.2.10.0100.00720.39
7.2.00.0110.00521.76
7.1.250.0110.00619.53
7.1.200.0060.00819.81
7.1.100.0030.01422.09
7.1.70.0000.01021.57
7.1.60.0090.01621.45
7.1.50.0000.01521.27
7.1.00.0100.07326.62
7.0.200.0060.00919.29
7.0.60.0030.08324.02
7.0.50.0130.07017.88
7.0.40.0000.06023.84
7.0.30.0300.03723.97
7.0.20.0370.07323.79
7.0.10.0100.04323.90
7.0.00.0030.07323.85
5.6.280.0000.04325.01
5.6.210.0100.08024.60
5.6.200.0100.03718.21
5.6.190.0170.08024.05
5.6.180.0330.07724.15
5.6.170.0300.03324.34
5.6.160.0070.08724.18
5.6.150.0000.04318.21
5.6.140.0000.06718.12
5.6.130.0070.04018.09
5.6.120.0170.08324.95
5.6.110.0100.07324.86
5.6.100.0100.07025.11
5.6.90.0100.09025.09
5.6.80.0070.07324.33
5.5.350.0230.07024.13
5.5.340.0000.07317.95
5.5.330.0030.09024.08
5.5.320.0170.08323.97
5.5.310.0170.04024.16
5.5.300.0070.03718.01
5.5.290.0030.04717.89
5.5.280.0000.05024.77
5.5.270.0170.05324.72
5.5.260.0100.07024.76
5.5.250.0100.06724.29
5.5.240.0070.04324.16
5.4.450.0670.05723.16
5.4.440.0630.07322.85
5.4.430.0800.05723.34
5.4.420.0630.05722.94
5.4.410.0670.05323.22
5.4.400.0670.05323.02
5.4.390.0670.05322.76
5.4.380.0730.05022.98
5.4.370.0600.06322.52
5.4.360.0900.05322.59
5.4.350.0770.08022.62
5.4.340.0770.07022.62
5.4.320.0770.07722.79
5.4.310.0530.09322.48
5.4.300.0730.06722.95
5.4.290.0500.08022.61
5.4.280.0570.07323.02
5.4.270.0670.06722.75
5.4.260.0500.06022.84
5.4.250.0800.07722.60
5.4.240.0830.06322.51
5.4.230.0630.07322.79
5.4.220.0670.07322.58
5.4.210.0700.06022.83
5.4.200.0630.06722.82
5.4.190.0300.07322.69
5.4.180.0130.08022.58
5.4.170.0730.07022.82
5.4.160.0570.05722.97
5.4.150.0670.06722.46
5.4.140.0500.06019.68
5.4.130.0570.05719.91
5.4.120.0670.05720.02
5.4.110.0130.08719.95
5.4.100.0100.07320.07
5.4.90.0430.05020.11
5.4.80.0800.07319.90
5.4.70.0130.05320.09
5.4.60.0030.06020.10
5.4.50.0270.05719.88
5.4.40.0700.06320.07
5.4.30.0530.07320.00
5.4.20.0600.07320.04
5.4.10.0670.04320.16
5.4.00.0630.06719.47

preferences:
56.8 ms | 401 KiB | 5 Q