3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intlDateFormatter = new \IntlDateFormatter('zh_TW', 2, -1, 'Asia/Macau', 1, 'yyyy/mm/dd'); $intlDateFormatter->setLenient(false); $result = $intlDateFormatter->parse('1972/04/16'); echo $result ? $result : 'fail for 1972/04/16'; echo "\n"; $intlDateFormatter = new \IntlDateFormatter('zh_TW', 2, -1, 'Asia/Macau', 1, 'yyyy-MM-dd'); $intlDateFormatter->setLenient(false); $result = $intlDateFormatter->parse('1980-04-21'); echo $result ? 'ok' : 'fail for 1980-04-21';

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.0060.02422.30
8.3.50.0110.02823.14
8.3.40.0100.01020.89
8.3.30.0030.01220.95
8.3.20.0080.00022.59
8.3.10.0080.00025.86
8.3.00.0090.00022.66
8.2.180.0190.01620.50
8.2.170.0080.00822.96
8.2.160.0120.00322.69
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0220.00420.38
8.2.110.0030.00722.45
8.2.100.0000.01221.03
8.2.90.0080.00021.59
8.2.80.0060.00320.63
8.2.70.0070.00320.36
8.2.60.0000.01021.04
8.2.50.0060.00320.60
8.2.40.0030.00624.13
8.2.30.0040.00421.10
8.2.20.0000.00920.75
8.2.10.0030.00521.06
8.2.00.0060.00321.03
8.1.280.0190.02225.92
8.1.270.0000.01022.44
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0030.00626.34
8.1.230.0080.00420.57
8.1.220.0030.00620.79
8.1.210.0040.00420.23
8.1.200.0060.00320.35
8.1.190.0210.00020.23
8.1.180.0030.00620.43
8.1.170.0000.00921.57
8.1.160.0050.00324.22
8.1.150.0050.00321.18
8.1.140.0030.00620.49
8.1.130.0040.00420.72
8.1.120.0030.00520.50
8.1.110.0030.00620.39
8.1.100.0030.00620.45
8.1.90.0000.00820.58
8.1.80.0080.00320.57
8.1.70.0000.00820.53
8.1.60.0040.00520.54
8.1.50.0060.00320.63
8.1.40.0060.00320.63
8.1.30.0050.00520.95
8.1.20.0000.00920.53
8.1.10.0000.00820.63
8.1.00.0030.00520.61
8.0.300.0000.00819.92
8.0.290.0080.00019.75
8.0.280.0040.00420.77
8.0.270.0030.00620.39
8.0.260.0040.00420.29
8.0.250.0000.00920.23
8.0.240.0040.00420.27
8.0.230.0040.00420.16
8.0.220.0030.00620.08
8.0.210.0090.00020.11
8.0.200.0000.00820.25
8.0.190.0100.01020.04
8.0.180.0050.00319.93
8.0.170.0000.00820.00
8.0.160.0150.00619.81
8.0.150.0060.00319.80
8.0.140.0000.00819.93
8.0.130.0030.00313.26
8.0.120.0000.00920.02
8.0.110.0030.00519.89
8.0.100.0040.00420.02
8.0.90.0000.00919.97
8.0.80.0060.01220.23
8.0.70.0030.00520.07
8.0.60.0080.00020.00
8.0.50.0050.00320.09
8.0.30.0080.01120.17
8.0.20.0080.01220.05
8.0.10.0000.00819.84
8.0.00.0130.00719.89
7.4.330.0030.00315.08
7.4.320.0030.00319.82
7.4.300.0030.00519.84
7.4.290.0000.00819.63
7.4.280.0240.00619.91
7.4.270.0000.00719.86
7.4.260.0080.00019.89
7.4.250.0040.00419.78
7.4.240.0030.00519.90
7.4.230.0020.00519.49
7.4.220.0130.00719.95
7.4.210.0090.00619.95
7.4.200.0050.00319.66
7.4.160.0070.01719.80
7.4.150.0030.01519.78
7.4.140.0120.01219.90
7.4.130.0090.01319.74
7.4.120.0130.00719.88
7.4.110.0080.01119.87
7.4.100.0070.01419.87
7.4.90.0060.01219.74
7.4.80.0050.01419.86
7.4.70.0140.00419.82
7.4.60.0070.01119.75
7.4.50.0000.01119.56
7.4.40.0080.00819.74
7.4.30.0090.00919.64
7.4.00.0090.00918.00
7.3.330.0050.00013.25
7.3.320.0000.00613.25
7.3.310.0040.00419.43
7.3.300.0000.00719.48
7.3.290.0090.00919.33
7.3.280.0130.01519.45
7.3.270.0060.01219.32
7.3.260.0090.00919.54
7.3.250.0110.00719.53
7.3.240.0070.01419.41
7.3.230.0060.01219.50
7.3.210.0130.01319.22
7.3.200.0150.01319.49
7.3.190.0100.01019.58
7.3.180.0040.01219.58
7.3.170.0160.00619.56
7.3.160.0070.01319.50
7.2.330.0080.01119.59
7.2.320.0070.01119.64
7.2.310.0150.00919.81
7.2.300.0100.01019.70
7.2.290.0030.01619.46
7.2.60.0000.01619.89
7.2.00.0070.00723.08
7.1.200.0000.01519.18
7.1.100.0130.00721.50
7.1.70.0190.00320.54
7.1.60.0120.01220.82
7.1.50.0120.01020.39
7.1.00.0070.07325.89
7.0.200.0110.00220.22
7.0.60.0030.08023.12
7.0.50.0030.04017.82
7.0.40.0070.04023.08
7.0.30.0270.08323.09
7.0.20.0130.05023.21
7.0.10.0170.06023.19
7.0.00.0070.08723.10
5.6.280.0030.04723.96
5.6.210.0030.08723.88
5.6.200.0100.05718.17
5.6.190.0100.04323.49
5.6.180.2900.04023.54
5.6.170.0200.09023.36
5.6.160.0000.06323.58
5.6.150.0170.06318.21
5.6.140.0130.07318.21
5.6.130.0100.03318.21
5.6.120.0100.08024.23
5.6.110.0070.04724.02
5.6.100.0100.08324.41
5.6.90.0130.08024.18
5.6.80.0070.07323.38
5.6.70.4500.03723.54
5.5.350.0130.07323.44
5.5.340.0070.04017.98
5.5.330.0130.06023.13
5.5.320.0230.04323.19
5.5.310.0200.05323.21
5.5.300.0030.08317.91
5.5.290.0030.04017.98
5.5.280.0070.08324.06
5.5.270.0100.05023.82
5.5.260.0230.06723.80
5.5.250.0070.04323.87
5.5.240.0170.08023.58
5.4.450.0130.06322.43
5.4.440.0230.05722.30
5.4.430.0200.04722.28
5.4.420.0470.06022.53
5.4.410.0430.05722.04
5.4.400.0100.06022.21
5.4.390.0070.06021.93
5.4.380.0270.05721.93
5.4.370.0130.05321.84
5.4.360.0070.06021.92
5.4.350.0070.06021.92
5.4.340.0170.05021.93
5.4.320.0030.06321.98
5.4.310.0200.04721.84
5.4.300.0100.06021.81
5.4.290.0100.05321.93
5.4.280.0130.05021.93
5.4.270.0430.06022.06
5.4.260.0170.04721.74
5.4.250.0330.04721.97
5.4.240.0100.06022.20
5.4.230.0100.05722.01
5.4.220.0100.05722.02
5.4.210.0170.05721.74
5.4.200.0170.04719.37
5.4.190.0170.04722.05
5.4.180.0200.05721.63
5.4.170.0400.05721.94
5.4.160.0200.05021.62
5.4.150.0200.05322.13
5.4.140.0470.04718.93
5.4.130.0400.05319.01
5.4.120.0300.05019.13
5.4.110.0030.05719.13
5.4.100.0100.05319.09
5.4.90.0230.04719.15
5.4.80.0170.04319.17
5.4.70.0230.04719.14
5.4.60.0200.05018.98
5.4.50.0070.05019.14
5.4.40.0100.06019.16
5.4.30.0270.04318.87
5.4.20.0100.05019.14
5.4.10.0070.05318.89
5.4.00.0130.05718.36

preferences:
83.13 ms | 401 KiB | 5 Q