3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intlDateFormatter = new IntlDateFormatter( 'en_US', IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE, 'Asia/Nicosia', IntlDateFormatter::GREGORIAN, 'yyyy-MM-dd HH' ); $intlDateFormatter->setLenient(false); $date = '1990-03-24 00'; $res = $intlDateFormatter->parse($date); echo "$date - $res\n"; // 1990-03-24 - 638229600 $date = '1990-03-25 00'; //$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"; // 1990-03-25 - $date = '1990-03-26 00'; $res = $intlDateFormatter->parse($date); echo "$date - $res\n"; // 1990-03-26 - 638398800

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.02322.46
8.3.50.0160.02620.53
8.3.40.0080.01521.61
8.3.30.0110.00921.12
8.3.20.0090.00823.58
8.3.10.0100.00724.00
8.3.00.0090.01021.59
8.2.180.0130.01720.50
8.2.170.0130.00821.77
8.2.160.0090.01122.48
8.2.150.0090.00822.26
8.2.140.0080.00923.29
8.2.130.0070.01023.90
8.2.120.0140.00421.12
8.2.110.0100.00821.92
8.2.100.0070.00721.27
8.2.90.0110.00821.22
8.2.80.0070.00821.20
8.2.70.0110.00520.69
8.2.60.0080.00721.15
8.2.50.0090.01021.29
8.2.40.0120.00621.96
8.2.30.0050.01321.01
8.2.20.0120.00520.87
8.2.10.0110.00521.02
8.2.00.0090.01021.07
8.1.280.0070.03025.92
8.1.270.0130.00723.67
8.1.260.0100.00724.96
8.1.250.0050.01025.62
8.1.240.0120.00822.00
8.1.230.0070.01020.62
8.1.220.0100.00620.94
8.1.210.0080.00720.67
8.1.200.0070.00820.59
8.1.190.0090.00420.61
8.1.180.0100.00420.42
8.1.170.0100.00821.12
8.1.160.0070.00721.93
8.1.150.0050.00820.96
8.1.140.0060.00920.74
8.1.130.0070.00720.83
8.1.120.0090.00520.73
8.1.110.0080.00820.62
8.1.100.0130.00421.43
8.1.90.0090.00620.70
8.1.80.0100.00721.44
8.1.70.0040.01320.76
8.1.60.0080.00620.76
8.1.50.0090.00620.78
8.1.40.0070.00820.79
8.1.30.0090.00921.00
8.1.20.0110.00621.72
8.1.10.0110.00420.91
8.1.00.0090.00520.78
8.0.300.0120.00619.93
8.0.290.0140.00619.98
8.0.280.0170.00820.18
8.0.270.0090.00820.11
8.0.260.0170.00619.93
8.0.250.0170.00620.14
8.0.240.0180.00720.11
8.0.230.0130.00920.13
8.0.220.0160.00620.04
8.0.210.0160.00820.03
8.0.200.0190.00520.02
8.0.190.0180.01120.13
8.0.180.0120.01020.11
8.0.170.0190.00720.04
8.0.160.0180.00420.18
8.0.150.0160.00719.88
8.0.140.0160.00719.96
8.0.130.0160.00717.83
8.0.120.0170.00720.07
8.0.110.0140.00920.06
8.0.100.0090.01120.10
8.0.90.0200.00720.00
8.0.80.0220.00620.04
8.0.70.0080.01020.11
8.0.60.0210.00619.91
8.0.50.0190.00720.09
8.0.30.0120.00820.27
8.0.20.0150.01220.25
8.0.10.0160.00720.13
8.0.00.0140.00920.68
7.4.330.0170.00718.22
7.4.320.0190.00719.75
7.4.300.0180.00919.58
7.4.290.0270.00619.83
7.4.280.0250.00719.64
7.4.270.0240.00419.64
7.4.260.0210.00819.59
7.4.250.0240.00619.74
7.4.240.0170.00719.70
7.4.230.0210.00619.70
7.4.220.0240.00519.63
7.4.210.0220.00719.68
7.4.200.0220.00619.74
7.4.190.0300.00819.69
7.4.180.0270.00820.09
7.4.160.0210.01319.70
7.4.150.0190.01019.47
7.4.140.0210.00619.75
7.4.130.0160.01019.61
7.4.120.0160.01119.65
7.4.110.0180.01019.67
7.4.100.0210.00719.64
7.4.90.0180.01019.62
7.4.80.0220.00719.70
7.4.70.0220.00919.60
7.4.60.0240.00619.62
7.4.50.0170.00719.50
7.4.40.0170.00819.80
7.4.30.0190.00919.88
7.4.20.0230.00919.42
7.4.10.0310.00219.54
7.4.00.0210.00819.03
7.3.330.0170.00517.26
7.3.320.0150.00717.30
7.3.310.0210.00419.55
7.3.300.0210.00519.80
7.3.290.0160.00819.51
7.3.280.0170.01019.53
7.3.270.0260.00919.48
7.3.260.0210.01319.50
7.3.250.0180.00919.47
7.3.240.0270.00419.49
7.3.230.0190.01519.52
7.3.220.0350.00719.28
7.3.210.0200.01319.46
7.3.200.0240.01019.43
7.3.190.0210.00919.40
7.3.180.0180.01219.46
7.3.170.0200.01019.78
7.3.160.0220.01019.39
7.3.150.0320.00819.38
7.3.140.0300.01419.25
7.3.130.0310.01119.02
7.3.120.0210.00919.43
7.3.110.0210.01019.97
7.3.100.0310.00519.33
7.3.90.0260.00619.57
7.3.80.0280.00319.39
7.3.70.0220.00920.55
7.3.60.0250.00719.51
7.3.50.0260.00419.70
7.3.40.0250.00619.54
7.3.30.0250.01319.56
7.3.20.0300.00719.40
7.3.10.0270.01019.47
7.3.00.0210.01319.43
7.2.340.0280.00819.58
7.2.330.0250.00619.47
7.2.320.0220.00819.54
7.2.310.0220.01119.41
7.2.300.0190.01319.65
7.2.290.0250.00719.42
7.2.280.0300.01119.48
7.2.270.0280.00919.60
7.2.260.0240.01019.64
7.2.250.0260.00819.63
7.2.240.0290.00919.53
7.2.230.0280.01019.54
7.2.220.0230.01419.57
7.2.210.0290.00919.60
7.2.200.0360.00719.68
7.2.190.0310.00919.62
7.2.180.0270.01119.67
7.2.170.0280.00619.81
7.2.160.0330.00319.57
7.2.150.0250.01019.62
7.2.140.0290.00919.76
7.2.130.0280.01219.90
7.2.120.0350.00819.76
7.2.110.0390.00819.56
7.2.100.0330.00819.71
7.2.90.0380.00719.69
7.2.80.0370.00519.68
7.2.70.0520.01119.95
7.2.60.0270.00519.87
7.2.50.0360.00519.77
7.2.40.0360.00719.54
7.2.30.0340.00919.75
7.2.20.0290.01019.86
7.2.10.0290.01019.84
7.2.00.0110.00621.01
7.1.330.0400.00818.58
7.1.320.0260.00318.62
7.1.310.0260.01018.58
7.1.300.0200.01418.66
7.1.290.0320.00918.68
7.1.280.0310.01118.58
7.1.270.0250.00519.79
7.1.260.0190.01218.62
7.1.250.0250.00618.78
7.1.240.0300.00818.80
7.1.230.0280.00718.83
7.1.220.0250.00518.75
7.1.210.0330.00418.54
7.1.200.0210.00818.65
7.1.190.0590.00618.52
7.1.180.0280.01118.55
7.1.170.0280.00418.52
7.1.160.0210.01219.72
7.1.150.0360.00418.60
7.1.140.0220.01618.54
7.1.130.0280.00818.72
7.1.120.0310.00718.49
7.1.110.0560.00718.58
7.1.100.0200.00919.43
7.1.90.0270.01018.53
7.1.80.0310.00718.70
7.1.70.0160.01119.15
7.1.60.0220.01119.29
7.1.50.0220.00719.78
7.1.40.0300.00518.70
7.1.30.0250.00818.60
7.1.20.0290.00918.72
7.1.10.0260.01318.60
7.1.00.0120.02821.53
7.0.330.0250.01418.41
7.0.320.0230.01618.49
7.0.310.0610.00518.19
7.0.300.0310.00718.30
7.0.290.0280.00818.19
7.0.280.0280.00718.34
7.0.270.0240.01118.19
7.0.260.0300.00718.47
7.0.250.0360.00418.59
7.0.240.0310.00818.50
7.0.230.0550.01018.49
7.0.220.0240.00818.33
7.0.210.0290.00318.49
7.0.200.0240.00418.82
7.0.190.0290.00818.38
7.0.180.0300.00718.38
7.0.170.0260.01218.39
7.0.160.0280.01018.40
7.0.150.0320.00718.28
7.0.140.0330.00518.20
7.0.130.0330.00818.47
7.0.120.0230.01218.39
7.0.110.0260.00619.69
7.0.100.0270.00618.35
7.0.90.0480.01118.34
7.0.80.0220.00518.33
7.0.70.0270.00318.11
7.0.60.0080.02419.93
7.0.50.0140.01618.05
7.0.40.0200.03120.09
7.0.30.0200.02619.90
7.0.20.0300.03019.80
7.0.10.0440.03019.89
7.0.00.0160.02919.93
5.6.400.0200.00718.95
5.6.390.0190.00619.18
5.6.380.0220.00818.96
5.6.370.0220.01218.93
5.6.360.0260.00819.07
5.6.350.0260.00719.16
5.6.340.0230.01119.03
5.6.330.0280.00818.87
5.6.320.0250.00818.85
5.6.310.0280.01018.89
5.6.300.0240.00918.82
5.6.290.0270.00618.91
5.6.280.0220.02520.71
5.6.270.0260.01019.03
5.6.260.0230.01218.90
5.6.250.0300.00518.70
5.6.240.0270.00718.98
5.6.230.0290.01118.97
5.6.220.0210.00819.10
5.6.210.0200.02520.65
5.6.200.0190.02418.87
5.6.190.0130.03920.61
5.6.180.0270.02420.47
5.6.170.0190.02620.44
5.6.160.0220.02920.76
5.6.150.0180.02118.91
5.6.140.0150.03418.72
5.6.130.0170.02318.86
5.6.120.0200.02520.67
5.6.110.0200.02220.71
5.6.100.0210.02420.76
5.6.90.0200.03020.75
5.6.80.0190.02220.32
5.6.70.0230.03420.45
5.6.60.0230.00619.29
5.6.50.0170.00719.20
5.6.40.0190.00518.92
5.6.30.0180.00719.09
5.6.20.0190.00818.91
5.6.10.0230.00319.02
5.6.00.0240.00318.74
5.5.380.0160.01219.04
5.5.370.0190.01019.02
5.5.360.0190.00718.97
5.5.350.0120.01720.39
5.5.340.0160.02318.65
5.5.330.0160.01720.38
5.5.320.0210.01820.25
5.5.310.0190.02320.28
5.5.300.0190.01418.61
5.5.290.0230.03018.70
5.5.280.0180.02820.49
5.5.270.0210.02120.57
5.5.260.0120.02220.58
5.5.250.0160.03320.62
5.5.240.0200.02720.38
5.5.230.0290.00518.62
5.5.220.0230.00719.13
5.5.210.0220.00519.02
5.5.200.0260.00618.68
5.5.190.0320.00518.78
5.5.180.0280.00518.70
5.5.170.0240.01018.80
5.5.160.0260.00618.99
5.5.150.0220.00718.88
5.5.140.0230.00418.55
5.5.130.0230.00318.63
5.5.120.0200.00818.73
5.5.110.0200.00618.71
5.5.100.0210.00618.98
5.5.90.0200.00918.97
5.5.80.0260.00819.08
5.5.70.0220.01018.96
5.5.60.0280.00518.95
5.5.50.0270.00718.88
5.5.40.0230.01118.97
5.5.30.0290.00619.23
5.5.20.0310.00519.06
5.5.10.0220.01119.05
5.5.00.0260.00718.98
5.4.450.0220.02218.12
5.4.440.0320.01818.18
5.4.430.0210.02318.11
5.4.420.0170.02918.11
5.4.410.0260.01818.07
5.4.400.0240.02018.06
5.4.390.0210.02418.02
5.4.380.0230.02118.05
5.4.370.0270.01618.00
5.4.360.0210.02618.02
5.4.350.0260.01917.99
5.4.340.0230.02017.94
5.4.330.0210.00316.07
5.4.320.0200.02018.01
5.4.310.0220.01818.02
5.4.300.0200.02418.02
5.4.290.0170.02217.96
5.4.280.0210.02217.96
5.4.270.0230.01718.00
5.4.260.0200.02018.04
5.4.250.0190.02018.02
5.4.240.0220.01718.02
5.4.230.0200.02118.05
5.4.220.0190.02118.00
5.4.210.0190.02018.00
5.4.200.0200.02617.20
5.4.190.0180.02018.04
5.4.180.0190.02018.04
5.4.170.0190.02117.89
5.4.160.0220.02018.00
5.4.150.0250.01717.90
5.4.140.0220.02517.10
5.4.130.0190.01917.14
5.4.120.0240.01817.08
5.4.110.0170.02417.15
5.4.100.0210.01917.08
5.4.90.0250.01817.03
5.4.80.0260.01617.05
5.4.70.0210.01917.01
5.4.60.0140.01917.03
5.4.50.0210.02417.04
5.4.40.0140.01917.08
5.4.30.0130.02417.13
5.4.20.0130.01917.07
5.4.10.0180.01617.14
5.4.00.0140.01916.86

preferences:
48.95 ms | 401 KiB | 5 Q