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(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.0140.00721.00
8.3.50.0110.01324.04
8.3.40.0120.01221.96
8.3.30.0100.00721.79
8.3.20.0090.00023.38
8.3.10.0060.00326.86
8.3.00.0100.00023.25
8.2.180.0130.01320.63
8.2.170.0100.00722.96
8.2.160.0040.01225.26
8.2.150.0030.00624.18
8.2.140.0060.00325.33
8.2.130.0090.00026.16
8.2.120.0060.00321.50
8.2.110.0060.00625.51
8.2.100.0080.00421.68
8.2.90.0030.00722.53
8.2.80.0090.00021.50
8.2.70.0090.00021.50
8.2.60.0060.00321.93
8.2.50.0070.00321.63
8.2.40.0030.00624.85
8.2.30.0040.00423.64
8.2.20.0030.00621.71
8.2.10.0060.00322.01
8.2.00.0060.00322.05
8.1.280.0030.01725.92
8.1.270.0040.00426.97
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0040.00825.65
8.1.230.0030.01021.75
8.1.220.0040.00421.76
8.1.210.0070.00321.36
8.1.200.0050.00521.23
8.1.190.0060.00321.10
8.1.180.0050.00521.49
8.1.170.0040.00422.91
8.1.160.0060.00325.12
8.1.150.0070.00323.74
8.1.140.0030.00723.40
8.1.130.0000.00821.75
8.1.120.0040.00421.48
8.1.110.0000.00921.41
8.1.100.0030.00621.40
8.1.90.0030.00621.49
8.1.80.0030.00621.44
8.1.70.0090.00021.50
8.1.60.0000.00921.63
8.1.50.0060.00321.48
8.1.40.0070.00421.45
8.1.30.0000.00921.36
8.1.20.0080.00421.79
8.1.10.0030.00621.50
8.1.00.0000.00921.48
8.0.300.0030.00620.75
8.0.290.0000.00920.63
8.0.280.0030.00621.59
8.0.270.0000.00921.24
8.0.260.0060.00321.27
8.0.250.0060.00320.98
8.0.240.0030.00620.71
8.0.230.0080.00020.84
8.0.220.0040.00420.79
8.0.210.0040.00420.75
8.0.200.0030.00521.02
8.0.190.0030.00720.71
8.0.180.0060.00320.79
8.0.170.0100.00020.79
8.0.160.0060.00320.89
8.0.150.0090.00020.75
8.0.140.0040.00420.72
8.0.130.0030.00313.29
8.0.120.0040.00720.76
8.0.110.0080.00420.84
8.0.100.0030.00621.00
8.0.90.0000.00921.14
8.0.80.0040.01421.24
8.0.70.0060.00320.72
8.0.60.0090.00321.12
8.0.50.0060.00320.68
8.0.30.0130.00721.30
8.0.20.0120.01121.17
8.0.10.0060.00320.79
8.0.00.0120.00720.74
7.4.330.0050.00015.08
7.4.320.0040.00420.71
7.4.300.0040.00420.54
7.4.290.0000.00820.67
7.4.280.0000.00920.56
7.4.270.0000.00820.69
7.4.260.0030.00620.47
7.4.250.0030.00620.51
7.4.240.0050.00320.57
7.4.230.0040.00420.57
7.4.220.0150.01220.74
7.4.210.0100.00720.56
7.4.200.0030.00720.57
7.4.160.0130.00320.46
7.4.150.0080.01220.47
7.4.140.0080.01220.33
7.4.130.0120.00820.50
7.4.120.0110.01320.46
7.4.110.0120.00920.60
7.4.100.0130.01620.33
7.4.90.0070.01420.47
7.4.80.0040.01520.35
7.4.70.0070.01120.46
7.4.60.0120.00620.45
7.4.50.0030.00720.52
7.4.40.0040.01520.40
7.4.30.0080.01620.40
7.4.00.0060.01218.92
7.3.330.0020.00213.26
7.3.320.0000.00513.16
7.3.310.0030.00520.38
7.3.300.0040.00420.07
7.3.290.0100.01120.18
7.3.280.0060.01320.34
7.3.270.0070.01120.77
7.3.260.0100.01020.05
7.3.250.0110.00920.75
7.3.240.0150.00520.07
7.3.230.0100.01320.45
7.3.210.0070.01420.50
7.3.200.0130.00620.25
7.3.190.0190.01220.35
7.3.180.0090.00920.70
7.3.170.0120.00620.72
7.3.160.0100.01020.20
7.3.00.0000.01520.54
7.2.330.0060.01320.77
7.2.320.0130.00720.77
7.2.310.0150.01220.36
7.2.300.0100.01620.78
7.2.290.0060.01320.51
7.2.130.0060.01320.68
7.2.120.0040.01220.59
7.2.110.0060.00620.54
7.2.100.0110.00620.46
7.2.90.0120.00620.70
7.2.80.0050.00920.70
7.2.70.0000.01220.93
7.2.60.0110.00320.65
7.2.50.0060.00920.72
7.2.40.0060.00620.67
7.2.30.0070.00720.80
7.2.20.0100.00620.68
7.2.10.0110.00320.84
7.2.00.0030.00922.36
7.1.250.0000.01519.54
7.1.240.0080.00419.74
7.1.230.0030.01319.46
7.1.220.0060.00619.93
7.1.210.0070.01019.65
7.1.200.0020.01219.64
7.1.190.0000.01219.49
7.1.180.0030.01019.87
7.1.170.0100.00319.52
7.1.160.0030.00919.63
7.1.150.0040.00819.67
7.1.140.0130.00319.82
7.1.130.0080.00419.79
7.1.120.0070.00419.61
7.1.110.0000.01219.67
7.1.100.0030.01120.88
7.1.90.0080.00519.80
7.1.80.0070.00719.22
7.1.70.0020.01020.02
7.1.60.0110.01020.46
7.1.50.0050.00820.44
7.1.40.0030.00719.38
7.1.30.0030.01219.79
7.1.20.0070.00419.64
7.1.10.0080.00619.56
7.1.00.0050.04323.07
7.0.330.0040.00819.19
7.0.320.0080.00319.24
7.0.310.0000.01119.20
7.0.300.0060.00619.45
7.0.290.0030.01219.41
7.0.280.0030.00919.35
7.0.270.0000.01219.40
7.0.260.0060.00619.38
7.0.250.0030.00919.43
7.0.240.0100.00019.31
7.0.230.0060.00619.39
7.0.220.0060.00619.54
7.0.210.0070.00719.28
7.0.200.0080.00519.33
7.0.190.0000.01119.71
7.0.180.0000.01119.68
7.0.170.0060.00319.21
7.0.160.0030.00819.35
7.0.150.0040.00819.45
7.0.140.0080.00819.49
7.0.130.0090.00619.65
7.0.120.0040.01119.30
7.0.110.0000.01419.50
7.0.100.0030.01019.44
7.0.90.0040.00819.33
7.0.80.0040.01119.28
7.0.70.0070.00319.27
7.0.60.0080.04021.53
7.0.50.0070.04218.50
7.0.40.0100.04320.58
7.0.30.0190.02820.50
7.0.20.0200.04420.69
7.0.10.0060.04320.58
7.0.00.0080.04520.68
5.6.380.0000.01418.47
5.6.370.0000.01318.02
5.6.360.0030.00918.09
5.6.350.0090.00318.36
5.6.340.0140.00018.37
5.6.330.0000.01218.41
5.6.320.0070.00718.20
5.6.310.0100.00318.36
5.6.300.0080.00618.35
5.6.290.0040.00418.11
5.6.280.0070.01821.81
5.6.270.0060.00918.30
5.6.260.0060.00918.38
5.6.250.0100.00317.95
5.6.240.0090.00318.40
5.6.230.0000.01818.30
5.6.220.0100.00318.23
5.6.210.0110.02521.35
5.6.200.0050.04518.23
5.6.190.0080.02521.30
5.6.180.0120.03021.25
5.6.170.0120.03021.32
5.6.160.0030.04721.12
5.6.150.0070.03818.36
5.6.140.0100.02818.10
5.6.130.0100.03018.26
5.6.120.0100.04321.58
5.6.110.0070.04321.63
5.6.100.0100.03021.66
5.6.90.0070.03621.72
5.6.80.0080.04321.28
5.6.70.0070.01018.53
5.6.60.0040.00718.26
5.6.50.0070.01117.98
5.6.40.0080.00817.92
5.6.30.0040.01218.16
5.6.20.0040.00818.32
5.6.10.0080.00818.24
5.6.00.0000.01418.35
5.5.380.0040.00710.83
5.5.370.0030.01010.99
5.5.360.0060.00610.80
5.5.350.0180.03317.49
5.5.340.0030.02514.34
5.5.330.0100.03517.19
5.5.320.0180.03817.38
5.5.310.0130.02617.41
5.5.300.0120.03214.51
5.5.290.0030.03614.31
5.5.280.0110.03817.76
5.5.270.0020.03717.65
5.5.260.0020.04917.66
5.5.250.0050.02717.52
5.5.240.0090.01517.47
5.5.230.0050.00210.46
5.5.220.0050.00510.82
5.5.210.0030.00710.83
5.5.200.0060.00610.71
5.5.190.0060.00010.50
5.5.180.0100.00010.82
5.5.170.0100.00010.69
5.5.160.0080.00310.90
5.5.150.0030.00710.66
5.5.140.0000.00710.91
5.5.130.0100.00010.96
5.5.120.0030.00310.84
5.5.110.0050.00510.76
5.5.100.0050.00510.84
5.5.90.0000.01310.80
5.5.80.0000.01110.83
5.5.70.0040.00810.56
5.5.60.0050.00510.50
5.5.50.0000.00610.60
5.5.40.0040.00710.91
5.5.30.0090.00010.75
5.5.20.0040.00710.83
5.5.10.0040.00410.80
5.5.00.0060.00310.80
5.4.450.0160.03816.63
5.4.440.0050.03616.85
5.4.430.0130.02717.00
5.4.420.0170.02316.85
5.4.410.0100.03016.70
5.4.400.0080.04116.79
5.4.390.0100.03216.72
5.4.380.0130.03516.68
5.4.370.0130.02816.64
5.4.360.0170.02516.60
5.4.350.0110.02716.93
5.4.340.0050.03516.63
5.4.330.0090.00010.66
5.4.320.0280.03016.69
5.4.310.0260.02916.68
5.4.300.0150.03016.63
5.4.290.0240.03216.57
5.4.280.0270.03116.47
5.4.270.0150.03416.67
5.4.260.0140.02716.69
5.4.250.0300.02516.63
5.4.240.0250.03616.87
5.4.230.0250.02216.59
5.4.220.0350.03216.67
5.4.210.0250.03216.76
5.4.200.0200.03116.80
5.4.190.0090.03216.80
5.4.180.0180.03816.63
5.4.170.0440.03416.61
5.4.160.0250.03216.59
5.4.150.0450.02316.58
5.4.140.0400.03915.49
5.4.130.0350.04015.37
5.4.120.0280.03815.36
5.4.110.0380.03515.33
5.4.100.0370.02815.20
5.4.90.0250.02215.33
5.4.80.0300.02815.21
5.4.70.0440.02715.32
5.4.60.0370.03315.37
5.4.50.0320.02415.51
5.4.40.0320.02515.22
5.4.30.0280.03115.35
5.4.20.0350.02415.54
5.4.10.0280.02815.39
5.4.00.0250.03615.09

preferences:
65.82 ms | 401 KiB | 5 Q