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::DATE, IntlDateFormatter::DATE, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo 'Formatted output is ' . $fmt->format(1446040313)."\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.0200.00320.88
8.3.50.0140.00923.93
8.3.40.0060.01021.46
8.3.30.0100.00721.59
8.3.20.0060.00323.02
8.3.10.0000.00926.44
8.3.00.0000.00922.77
8.2.180.0140.00722.25
8.2.170.0080.00822.96
8.2.160.0090.00625.17
8.2.150.0080.00024.18
8.2.140.0040.00425.16
8.2.130.0040.00426.16
8.2.120.0090.00423.76
8.2.110.0070.00424.77
8.2.100.0100.00321.68
8.2.90.0040.00421.81
8.2.80.0030.00721.38
8.2.70.0060.00321.13
8.2.60.0030.00621.66
8.2.50.0050.00421.13
8.2.40.0000.00822.87
8.2.30.0000.00823.43
8.2.20.0080.00021.39
8.2.10.0030.00621.63
8.2.00.0060.00321.71
8.1.280.0040.01525.92
8.1.270.0060.00326.83
8.1.260.0060.00326.35
8.1.250.0130.00628.09
8.1.240.0100.00026.70
8.1.230.0120.00021.28
8.1.220.0080.00021.28
8.1.210.0060.00321.11
8.1.200.0070.00320.88
8.1.190.0030.00621.10
8.1.180.0000.00921.41
8.1.170.0030.00624.32
8.1.160.0080.00024.81
8.1.150.0090.00023.55
8.1.140.0030.00623.16
8.1.130.0040.00421.29
8.1.120.0030.00521.02
8.1.110.0000.00921.13
8.1.100.0040.00421.24
8.1.90.0000.00821.07
8.1.80.0040.00421.14
8.1.70.0040.00421.10
8.1.60.0030.00621.42
8.1.50.0050.00521.12
8.1.40.0060.00321.23
8.1.30.0090.00021.57
8.1.20.0060.00321.50
8.1.10.0050.00321.22
8.1.00.0030.00621.20
8.0.300.0000.00820.79
8.0.290.0040.00420.63
8.0.280.0000.00821.30
8.0.270.0060.00320.96
8.0.260.0040.00421.02
8.0.250.0000.00820.82
8.0.240.0090.00020.70
8.0.230.0030.00520.64
8.0.220.0090.00020.58
8.0.210.0040.00420.61
8.0.200.0040.00420.61
8.0.190.0030.00620.69
8.0.180.0030.00620.64
8.0.170.0060.00320.77
8.0.160.0000.00920.61
8.0.150.0080.00020.71
8.0.140.0030.00520.56
8.0.130.0000.00513.33
8.0.120.0030.00620.50
8.0.110.0060.00320.45
8.0.100.0060.00320.31
8.0.90.0030.00520.80
8.0.80.0030.01420.98
8.0.70.0040.00420.93
8.0.60.0030.00520.42
8.0.50.0030.00620.54
8.0.30.0100.00821.06
8.0.20.0070.01420.97
8.0.10.0040.00421.03
8.0.00.0100.00920.53
7.4.330.0020.00215.08
7.4.320.0040.00420.42
7.4.300.0030.00320.40
7.4.290.0000.00820.39
7.4.280.0050.00520.61
7.4.270.0040.00420.53
7.4.260.0000.00820.10
7.4.250.0030.00620.45
7.4.240.0030.00520.50
7.4.230.0020.00520.21
7.4.220.0060.01620.52
7.4.210.0180.00620.52
7.4.200.0000.00920.55
7.4.160.0110.00620.38
7.4.150.0060.01320.47
7.4.140.0120.00820.34
7.4.130.0130.00620.44
7.4.120.0110.00820.35
7.4.110.0130.00620.47
7.4.100.0160.00620.30
7.4.90.0140.00520.19
7.4.80.0090.01120.44
7.4.70.0110.00720.51
7.4.60.0100.00720.29
7.4.50.0060.00320.44
7.4.40.0090.00920.30
7.4.30.0080.01220.39
7.4.00.0040.01118.75
7.3.330.0030.00313.27
7.3.320.0030.00313.02
7.3.310.0040.00420.16
7.3.300.0060.00319.89
7.3.290.0110.00720.13
7.3.280.0110.00920.23
7.3.270.0150.00420.27
7.3.260.0150.00919.84
7.3.250.0100.00820.20
7.3.240.0090.01220.41
7.3.230.0060.01319.88
7.3.210.0070.01119.97
7.3.200.0090.00920.18
7.3.190.0140.00720.27
7.3.180.0130.01219.80
7.3.170.0000.02020.43
7.3.160.0090.00920.31
7.2.330.0140.00620.36
7.2.320.0140.00920.45
7.2.310.0060.01620.43
7.2.300.0150.01120.25
7.2.290.0100.01020.45
7.2.60.0030.01220.13
7.2.00.0070.00723.70
7.1.200.0040.01119.32
7.1.100.0000.01822.21
7.1.70.0040.00420.88
7.1.60.0060.01921.17
7.1.50.0030.00920.83
7.1.00.0000.07326.43
7.0.200.0070.01018.75
7.0.60.0170.07723.75
7.0.50.0130.06017.79
7.0.40.0000.07723.63
7.0.30.0230.08023.58
7.0.20.0400.05723.70
7.0.10.0130.07723.71
7.0.00.0170.08323.51
5.6.280.0000.03724.73
5.6.210.0130.06324.24
5.6.200.0000.06018.15
5.6.190.0030.09023.97
5.6.180.0230.04723.89
5.6.170.0230.07724.25
5.6.160.0070.06324.07
5.6.150.0030.08018.09
5.6.140.0030.08718.11
5.6.130.0000.05318.11
5.6.120.0230.06024.87
5.6.110.0130.06724.55
5.6.100.0130.05024.55
5.6.90.0100.08324.86
5.6.80.0100.05024.05
5.5.350.0300.07024.13
5.5.340.0070.04717.93
5.5.330.0270.06323.64
5.5.320.0270.04723.75
5.5.310.0100.05023.76
5.5.300.0170.07018.01
5.5.290.0070.07717.98
5.5.280.0100.05324.75
5.5.270.0100.08724.65
5.5.260.0130.07024.26
5.5.250.0100.08324.36
5.5.240.0030.04023.89
5.4.450.0730.07722.57
5.4.440.0470.07322.73
5.4.430.0730.07722.55
5.4.420.0670.05323.02
5.4.410.0700.05022.64
5.4.400.0700.05722.41
5.4.390.0630.05322.20
5.4.380.0600.06722.14
5.4.370.0770.04722.55
5.4.360.0700.05322.72
5.4.350.0700.05322.70
5.4.340.0630.07022.14
5.4.320.0700.07022.32
5.4.310.0730.04722.42
5.4.300.0570.06022.23
5.4.290.0800.06722.40
5.4.280.0700.09022.32
5.4.270.0870.07022.71
5.4.260.0800.07022.70
5.4.250.0670.07022.51
5.4.240.0630.07022.42
5.4.230.0630.05722.20
5.4.220.0630.07322.41
5.4.210.0700.06322.41
5.4.200.0600.06722.22
5.4.190.0630.05322.31
5.4.180.0770.05322.52
5.4.170.0700.08322.41
5.4.160.0900.07322.49
5.4.150.0800.06722.34
5.4.140.0800.06319.48
5.4.130.0600.07019.73
5.4.120.0570.06719.79
5.4.110.0700.06319.77
5.4.100.0700.05719.77
5.4.90.0700.05319.90
5.4.80.0630.06019.62
5.4.70.0630.06319.60
5.4.60.0800.05719.64
5.4.50.0670.05019.74
5.4.40.0870.04719.57
5.4.30.0770.05019.64
5.4.20.0900.05719.83
5.4.10.0670.05019.74
5.4.00.0600.05719.20

preferences:
87.84 ms | 401 KiB | 5 Q