3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '28/05/1972'; $formats = [ 'dd/MM/yyyy', 'd/m/Y', ]; foreach ($formats as $format) { $intlDateFormatter = new IntlDateFormatter( 'it_IT', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Europe/Rome', IntlDateFormatter::GREGORIAN, $format ); $intlDateFormatter->setLenient(false); $intlDateFormatter->parse($date); var_dump($intlDateFormatter->getErrorMessage()); $intlDateFormatter->setLenient(true); $intlDateFormatter->parse($date); var_dump($intlDateFormatter->getErrorMessage()); }

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.0170.02420.75
8.3.50.0140.02223.11
8.3.40.0100.00621.17
8.3.30.0060.00921.09
8.3.20.0080.00022.79
8.3.10.0050.00524.15
8.3.00.0000.00826.03
8.2.180.0130.01622.31
8.2.170.0100.01322.96
8.2.160.0130.00621.81
8.2.150.0040.00424.18
8.2.140.0060.00324.68
8.2.130.0080.00026.16
8.2.120.0000.00922.91
8.2.110.0070.00324.54
8.2.100.0100.00321.05
8.2.90.0090.00021.71
8.2.80.0030.00621.18
8.2.70.0040.00820.75
8.2.60.0030.00621.16
8.2.50.0030.00620.63
8.2.40.0030.00724.46
8.2.30.0030.00521.82
8.2.20.0080.00020.78
8.2.10.0040.00421.32
8.2.00.0000.00821.21
8.1.280.0100.03025.92
8.1.270.0100.01022.61
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0060.00326.31
8.1.230.0080.00422.29
8.1.220.0060.00320.90
8.1.210.0090.00020.61
8.1.200.0040.00720.48
8.1.190.0090.00020.47
8.1.180.0060.00320.73
8.1.170.0030.00621.63
8.1.160.0040.00423.25
8.1.150.0000.00821.40
8.1.140.0030.00622.67
8.1.130.0050.00320.86
8.1.120.0000.00820.47
8.1.110.0000.00820.70
8.1.100.0060.00320.57
8.1.90.0040.00420.63
8.1.80.0090.00020.61
8.1.70.0000.00920.53
8.1.60.0000.00820.75
8.1.50.0000.01120.70
8.1.40.0030.00620.67
8.1.30.0100.00021.02
8.1.20.0060.00320.77
8.1.10.0080.00420.67
8.1.00.0000.00920.46
8.0.300.0050.00520.10
8.0.290.0040.00420.00
8.0.280.0000.00720.89
8.0.270.0040.00420.56
8.0.260.0000.00720.46
8.0.250.0040.00420.38
8.0.240.0040.00420.18
8.0.230.0000.00820.31
8.0.220.0000.01020.14
8.0.210.0040.00420.15
8.0.200.0050.00520.35
8.0.190.0040.00420.32
8.0.180.0000.00820.27
8.0.170.0000.00920.26
8.0.160.0080.00020.00
8.0.150.0050.00319.96
8.0.140.0090.00020.07
8.0.130.0000.00513.34
8.0.120.0090.00020.04
8.0.110.0030.00520.05
8.0.100.0090.00020.27
8.0.90.0030.00620.07
8.0.80.0060.01620.21
8.0.70.0090.00020.21
8.0.60.0080.00019.96
8.0.50.0040.00420.22
8.0.30.0090.01120.43
8.0.20.0090.01320.37
8.0.10.0030.00620.26
8.0.00.0090.01420.08
7.4.330.0000.00616.66
7.4.320.0050.00220.18
7.4.300.0050.00320.10
7.4.290.0000.00820.07
7.4.280.0030.00820.06
7.4.270.0000.00719.96
7.4.260.0000.00819.82
7.4.250.0060.00319.91
7.4.240.0020.00619.99
7.4.230.0030.00620.16
7.4.220.0070.01620.05
7.4.210.0110.00720.16
7.4.200.0040.00419.94
7.4.160.0090.00919.93
7.4.150.0100.01319.95
7.4.140.0140.00719.77
7.4.130.0140.00820.00
7.4.120.0080.01119.99
7.4.110.0090.01019.94
7.4.100.0040.02319.73
7.4.90.0110.01119.85
7.4.80.0170.00319.81
7.4.70.0090.01019.87
7.4.60.0090.00919.79
7.4.50.0070.01019.97
7.4.40.0150.00419.90
7.4.30.0070.01319.88
7.4.00.0000.01418.45
7.3.330.0000.00513.16
7.3.320.0050.00013.25
7.3.310.0060.00319.38
7.3.300.0000.00719.46
7.3.290.0090.00819.54
7.3.280.0100.00919.57
7.3.270.0120.00919.61
7.3.260.0060.01219.61
7.3.250.0100.00919.56
7.3.240.0050.01319.74
7.3.230.0130.01219.75
7.3.210.0090.00919.71
7.3.200.0090.00919.58
7.3.190.0040.01419.82
7.3.180.0060.01219.64
7.3.170.0070.01119.56
7.3.160.0040.01419.51
7.3.00.0070.00719.68
7.2.330.0100.01019.58
7.2.320.0060.01319.67
7.2.310.0170.00719.93
7.2.300.0120.00919.77
7.2.290.0130.00619.79
7.2.130.0060.01019.91
7.2.120.0060.00619.80
7.2.110.0000.01120.16
7.2.100.0070.00720.11
7.2.90.0000.01620.16
7.2.80.0030.00720.27
7.2.70.0000.01119.78
7.2.60.0110.01120.18
7.2.50.0060.00320.10
7.2.40.0070.00720.06
7.2.30.0080.00519.81
7.2.20.0070.00720.36
7.2.10.0040.00820.24
7.2.00.0000.01220.18
7.1.250.0040.00818.84
7.1.240.0040.01119.30
7.1.230.0080.00418.98
7.1.220.0000.01119.11
7.1.210.0040.01119.14
7.1.200.0080.00319.11
7.1.190.0040.01118.78
7.1.180.0030.00618.82
7.1.170.0040.01419.21
7.1.160.0040.01219.07
7.1.150.0030.00919.04
7.1.140.0050.00919.20
7.1.130.0100.00319.00
7.1.120.0090.00319.19
7.1.110.0040.00819.16
7.1.100.0140.00820.12
7.1.90.0030.00919.02
7.1.80.0000.01219.21
7.1.70.0040.00820.06
7.1.60.0070.00720.16
7.1.50.0080.01219.89
7.1.40.0000.01219.05
7.1.30.0030.00719.07
7.1.20.0000.00919.17
7.1.10.0040.00818.96
7.1.00.0060.04222.37
7.0.330.0060.00618.65
7.0.320.0080.00418.70
7.0.310.0060.00618.96
7.0.300.0000.01018.59
7.0.290.0000.01218.84
7.0.280.0000.00818.83
7.0.270.0040.00818.80
7.0.260.0000.00918.83
7.0.250.0120.00318.73
7.0.240.0000.01118.77
7.0.230.0090.00618.58
7.0.220.0070.00718.90
7.0.210.0030.01019.00
7.0.200.0040.00919.53
7.0.190.0070.00718.57
7.0.180.0090.00618.54
7.0.170.0100.00318.75
7.0.160.0000.01418.79
7.0.150.0030.01018.95
7.0.140.0080.00418.77
7.0.130.0060.00618.84
7.0.120.0080.00618.70
7.0.110.0060.00618.65
7.0.100.0040.00818.77
7.0.90.0110.00418.39
7.0.80.0070.00318.86
7.0.70.0110.00018.81
7.0.60.0090.01921.77
7.0.50.0050.04518.08
7.0.40.0090.04419.72
7.0.30.0150.04719.96
7.0.20.0170.04419.75
7.0.10.0030.03319.82
7.0.00.0100.03819.82
5.6.380.0030.01217.62
5.6.370.0040.00817.33
5.6.360.0030.00617.67
5.6.350.0100.00317.71
5.6.340.0030.00717.73
5.6.330.0030.00717.53
5.6.320.0030.00717.54
5.6.310.0060.00617.62
5.6.300.0060.00617.40
5.6.290.0030.01017.20
5.6.280.0050.01820.95
5.6.270.0000.01317.51
5.6.260.0030.01517.62
5.6.250.0060.00617.54
5.6.240.0040.00717.43
5.6.230.0080.00417.61
5.6.220.0150.00317.50
5.6.210.0040.04520.61
5.6.200.0030.02517.83
5.6.190.0030.04920.37
5.6.180.0150.03020.48
5.6.170.0180.04220.48
5.6.160.0090.03620.42
5.6.150.0110.02017.74
5.6.140.0050.03217.77
5.6.130.0100.04117.81
5.6.120.0000.02720.89
5.6.110.0110.03620.89
5.6.100.0100.03120.76
5.6.90.0220.03020.82
5.6.80.0070.02120.58
5.6.70.0090.00317.22
5.6.60.0080.00417.16
5.6.50.0030.00917.11
5.6.40.0030.00917.66
5.6.30.0090.00617.33
5.6.20.0030.01017.27
5.6.10.0030.01417.59
5.6.00.0030.01017.61
5.5.380.0030.00810.97
5.5.370.0110.00011.09
5.5.360.0000.01010.98
5.5.350.0000.02217.38
5.5.340.0050.04214.58
5.5.330.0030.02517.04
5.5.320.0320.03317.14
5.5.310.0100.02517.19
5.5.300.0050.02914.43
5.5.290.0080.04314.51
5.5.280.0080.04017.63
5.5.270.0020.04617.54
5.5.260.0080.03017.42
5.5.250.0120.03717.31
5.5.240.0100.04017.18
5.5.230.0000.00810.96
5.5.220.0000.00811.13
5.5.210.0040.00411.00
5.5.200.0050.00310.96
5.5.190.0070.00011.05
5.5.180.0040.00411.05
5.5.170.0060.00610.99
5.5.160.0030.00610.93
5.5.150.0000.01110.84
5.5.140.0030.00310.97
5.5.130.0000.01010.79
5.5.120.0050.00310.80
5.5.110.0040.00811.02
5.5.100.0080.00310.75
5.5.90.0040.00410.82
5.5.80.0060.00610.83
5.5.70.0060.00611.08
5.5.60.0070.00711.07
5.5.50.0040.00711.02
5.5.40.0030.00610.90
5.5.30.0000.00710.84
5.5.20.0000.01110.85
5.5.10.0000.00710.57
5.5.00.0070.00011.05

preferences:
54.36 ms | 401 KiB | 5 Q