3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intlDateFormatter = new IntlDateFormatter( 'it', 2, -1, 'Europe/Rome', 1, 'dd/MM/yyyy' ); $timezone = $intlDateFormatter->getTimeZone(); var_dump($timezone->getDisplayName()); $intlDateFormatter->setLenient(false); $date = '22/05/1966'; //$intlDateFormatter->setLenient(true); $res = $intlDateFormatter->parse($date, $pos); var_dump($res); var_dump($pos); var_dump($intlDateFormatter->getErrorCode()); var_dump($intlDateFormatter->getErrorMessage()); echo "$date - $res\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.0130.01622.81
8.3.50.0170.01923.35
8.3.40.0130.00621.25
8.3.30.0040.01221.29
8.3.20.0030.00522.95
8.3.10.0040.00424.22
8.3.00.0110.00026.42
8.2.180.0090.01921.25
8.2.170.0140.00322.96
8.2.160.0160.00022.99
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00423.31
8.2.120.0080.00026.35
8.2.110.0030.00625.07
8.2.100.0100.00321.54
8.2.90.0060.00321.80
8.2.80.0110.00021.15
8.2.70.0000.00921.09
8.2.60.0000.00821.43
8.2.50.0080.00021.13
8.2.40.0030.00725.12
8.2.30.0000.00822.21
8.2.20.0080.00021.27
8.2.10.0030.00921.66
8.2.00.0040.00421.71
8.1.280.0060.02325.92
8.1.270.0040.00424.68
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0100.00024.81
8.1.230.0130.00022.63
8.1.220.0060.00321.28
8.1.210.0000.00920.86
8.1.200.0030.00720.86
8.1.190.0030.00620.63
8.1.180.0030.00620.89
8.1.170.0090.00022.16
8.1.160.0050.00323.37
8.1.150.0030.00621.50
8.1.140.0070.00322.98
8.1.130.0040.00421.14
8.1.120.0030.00620.95
8.1.110.0100.00020.98
8.1.100.0040.00420.95
8.1.90.0080.00020.89
8.1.80.0030.00620.99
8.1.70.0080.00020.92
8.1.60.0040.00421.05
8.1.50.0050.00520.92
8.1.40.0030.00621.06
8.1.30.0040.00421.37
8.1.20.0060.00320.99
8.1.10.0000.00821.25
8.1.00.0030.00720.86
8.0.300.0030.00620.29
8.0.290.0040.00420.25
8.0.280.0080.00021.08
8.0.270.0050.00320.76
8.0.260.0040.00420.67
8.0.250.0040.00420.59
8.0.240.0040.00720.45
8.0.230.0050.00320.56
8.0.220.0000.00820.49
8.0.210.0050.00520.42
8.0.200.0040.00420.57
8.0.190.0070.00420.54
8.0.180.0050.00320.41
8.0.170.0060.00320.57
8.0.160.0040.00420.44
8.0.150.0030.00520.26
8.0.140.0030.00520.42
8.0.130.0000.00513.35
8.0.120.0040.00420.23
8.0.110.0080.00020.47
8.0.100.0080.00020.62
8.0.90.0030.00520.29
8.0.80.0130.00320.70
8.0.70.0000.00820.56
8.0.60.0060.00320.62
8.0.50.0040.00420.29
8.0.30.0100.00920.77
8.0.20.0110.01120.54
8.0.10.0000.00820.59
8.0.00.0140.00820.19
7.4.330.0000.00516.77
7.4.320.0040.00420.40
7.4.300.0030.00620.30
7.4.290.0030.00520.21
7.4.280.0000.00920.00
7.4.270.0000.00720.32
7.4.260.0090.00320.29
7.4.250.0090.00020.27
7.4.240.0040.00320.23
7.4.230.0080.00020.30
7.4.220.0100.01120.22
7.4.210.0100.00620.24
7.4.200.0000.00820.24
7.4.160.0090.00920.33
7.4.150.0150.00620.35
7.4.140.0140.00720.02
7.4.130.0110.01320.18
7.4.120.0080.01220.09
7.4.110.0080.01220.15
7.4.100.0150.00320.17
7.4.90.0170.00320.04
7.4.80.0120.01120.15
7.4.70.0030.01520.24
7.4.60.0110.00720.02
7.4.50.0070.01020.17
7.4.40.0060.01619.96
7.4.30.0170.00920.18
7.4.00.0030.01318.80
7.3.330.0000.00513.01
7.3.320.0000.00513.15
7.3.310.0040.00419.86
7.3.300.0070.00020.06
7.3.290.0030.00619.98
7.3.280.0090.00719.87
7.3.270.0130.00619.66
7.3.260.0060.01420.03
7.3.250.0070.01320.11
7.3.240.0100.01020.14
7.3.230.0090.00920.09
7.3.210.0120.00620.05
7.3.200.0110.00820.14
7.3.190.0140.01120.06
7.3.180.0220.00020.00
7.3.170.0070.01819.97
7.3.160.0150.00319.96
7.2.330.0210.04220.02
7.2.320.0000.02020.02
7.2.310.0130.00619.98
7.2.300.0100.01019.84
7.2.290.0160.00920.18
7.2.60.0060.00920.55
7.2.00.0080.00523.20
7.1.200.0120.00819.42
7.1.100.0070.00722.16
7.1.70.0040.00420.73
7.1.60.0170.01021.02
7.1.50.0030.00921.19
7.1.00.0100.07026.00
7.0.200.0030.00620.69
7.0.60.0100.06325.59
7.0.50.0100.03317.90
7.0.40.0030.05323.40
7.0.30.0430.07723.59
7.0.20.0370.05323.80
7.0.10.0100.05323.46
7.0.00.0100.08323.46
5.6.280.0070.03024.35
5.6.210.0070.08324.30
5.6.200.0100.05018.13
5.6.190.0070.04323.77
5.6.180.0370.07023.87
5.6.170.0400.07323.81
5.6.160.0100.07323.81
5.6.150.0130.07318.21
5.6.140.0070.08018.15
5.6.130.0030.07018.16
5.6.120.0030.04724.43
5.6.110.0130.08024.61
5.6.100.0170.07324.47
5.6.90.0130.07724.30
5.6.80.0130.07023.94
5.5.350.0030.04324.04
5.5.340.0130.04317.92
5.5.330.0100.06023.63
5.5.320.0230.04323.44
5.5.310.0300.07323.40
5.5.300.0070.07017.91
5.5.290.0130.07318.02
5.5.280.0070.08324.42
5.5.270.0030.04024.42
5.5.260.0100.08024.55
5.5.250.0100.08024.37
5.5.240.0130.08023.81

preferences:
48.05 ms | 401 KiB | 5 Q