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 01'; $res = $intlDateFormatter->parse($date); echo "$date - $res\n"; // 1990-03-24 - 638229600 $date = '1990-03-25 01'; //$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 01'; $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.02422.30
8.3.50.0080.03123.01
8.3.40.0130.00621.01
8.3.30.0060.00920.89
8.3.20.0030.00622.39
8.3.10.0060.00325.73
8.3.00.0060.00322.56
8.2.180.0130.01620.88
8.2.170.0130.00722.96
8.2.160.0110.00722.60
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0220.00420.36
8.2.110.0030.00724.45
8.2.100.0090.00320.72
8.2.90.0080.00020.75
8.2.80.0040.00820.77
8.2.70.0070.00320.38
8.2.60.0060.00320.63
8.2.50.0060.00320.25
8.2.40.0040.00423.07
8.2.30.0030.00622.64
8.2.20.0050.00520.55
8.2.10.0030.00520.98
8.2.00.0040.00421.17
8.1.280.0100.03025.92
8.1.270.0070.01422.58
8.1.260.0060.00626.35
8.1.250.0030.00628.09
8.1.240.0000.01124.14
8.1.230.0040.00823.90
8.1.220.0030.00620.77
8.1.210.0060.00320.23
8.1.200.0030.00620.10
8.1.190.0120.00920.00
8.1.180.0150.00320.10
8.1.170.0030.00619.99
8.1.160.0050.00524.06
8.1.150.0030.00521.13
8.1.140.0050.00520.42
8.1.130.0080.00020.74
8.1.120.0000.00920.57
8.1.110.0040.00420.35
8.1.100.0040.00420.54
8.1.90.0080.00020.59
8.1.80.0000.00820.50
8.1.70.0000.00820.48
8.1.60.0030.00620.65
8.1.50.0060.00320.57
8.1.40.0000.01120.33
8.1.30.0000.00920.93
8.1.20.0030.00620.87
8.1.10.0080.00020.75
8.1.00.0080.00020.70
8.0.300.0080.00020.34
8.0.290.0000.00819.88
8.0.280.0000.00820.61
8.0.270.0040.00419.79
8.0.260.0000.00720.22
8.0.250.0000.00820.24
8.0.240.0080.00020.11
8.0.230.0040.00420.04
8.0.220.0060.00320.01
8.0.210.0020.00520.13
8.0.200.0040.00420.09
8.0.190.0090.00320.17
8.0.180.0000.01019.91
8.0.170.0040.00419.93
8.0.160.0060.00319.81
8.0.150.0050.00320.01
8.0.140.0040.00419.95
8.0.130.0060.00013.36
8.0.120.0040.00419.91
8.0.110.0000.00820.19
8.0.100.0000.00820.33
8.0.90.0030.00620.26
8.0.80.0170.00319.91
8.0.70.0050.00320.25
8.0.60.0000.00820.11
8.0.50.0030.00620.36
8.0.30.0070.01120.06
8.0.20.0120.01020.26
8.0.10.0040.00420.36
8.0.00.0100.01119.86
7.4.330.0020.00215.08
7.4.320.0000.00719.86
7.4.300.0000.00719.52
7.4.290.0070.00019.73
7.4.280.0030.00619.83
7.4.270.0020.00519.82
7.4.260.0060.00319.75
7.4.250.0060.00319.68
7.4.240.0050.00319.81
7.4.230.0040.00419.74
7.4.220.0180.00919.82
7.4.210.0100.01019.91
7.4.200.0000.00819.86
7.4.160.0100.00719.75
7.4.150.0060.01219.44
7.4.140.0140.00919.70
7.4.130.0120.00919.76
7.4.120.0120.00819.76
7.4.110.0110.00819.75
7.4.100.0150.01119.75
7.4.90.0090.01219.70
7.4.80.0130.01019.77
7.4.70.0100.01019.71
7.4.60.0120.00619.75
7.4.50.0020.00219.64
7.4.40.0120.00619.61
7.4.30.0080.01219.73
7.4.00.0030.01618.23
7.3.330.0050.00013.17
7.3.320.0060.00012.96
7.3.310.0050.00319.54
7.3.300.0070.00019.20
7.3.290.0120.01019.48
7.3.280.0100.01119.52
7.3.270.0100.01319.61
7.3.260.0150.00419.75
7.3.250.0100.00819.41
7.3.240.0130.01019.54
7.3.230.0060.01319.64
7.3.210.0110.01119.91
7.3.200.0110.01119.66
7.3.190.0070.01119.70
7.3.180.0090.00919.35
7.3.170.0130.00619.92
7.3.160.0170.00719.59
7.2.330.0070.01419.54
7.2.320.0280.00319.25
7.2.310.0100.01019.79
7.2.300.0060.01319.76
7.2.290.0100.01419.36
7.2.120.0120.00619.55
7.2.110.0090.00319.55
7.2.100.0070.01119.53
7.2.90.0120.00419.86
7.2.80.0080.01219.63
7.2.70.0070.00719.91
7.2.60.0080.01019.85
7.2.50.0110.01119.83
7.2.40.0090.00819.89
7.2.30.0130.00319.73
7.2.20.0120.00919.90
7.2.10.0110.00919.80
7.2.00.0030.01121.38
7.1.240.0130.00018.77
7.1.230.0140.00318.79
7.1.220.0090.00619.06
7.1.210.0060.01118.80
7.1.200.0100.00718.88
7.1.190.0200.00018.91
7.1.180.0040.01019.06
7.1.170.0120.00618.79
7.1.160.0130.00418.86
7.1.150.0090.00718.77
7.1.140.0040.01318.72
7.1.130.0080.01018.86
7.1.120.0090.00618.95
7.1.110.0110.00718.81
7.1.100.0060.01019.95
7.1.90.0080.00818.75
7.1.80.0070.01118.95
7.1.70.0050.00919.91
7.1.60.0070.01119.97
7.1.50.0090.00919.56
7.1.40.0150.00418.95
7.1.30.0150.00619.09
7.1.20.0090.00518.99
7.1.10.0150.00319.26
7.1.00.0140.03622.15
7.0.320.0110.00618.61
7.0.310.0050.01118.78
7.0.300.0090.00518.53
7.0.290.0150.00018.80
7.0.280.0130.00418.59
7.0.270.0110.00618.77
7.0.260.0110.00218.58
7.0.250.0150.00018.64
7.0.240.0120.00418.55
7.0.230.0000.01418.80
7.0.220.0100.00818.72
7.0.210.0080.00818.56
7.0.200.0050.00919.21
7.0.190.0110.00818.64
7.0.180.0130.00318.67
7.0.170.0140.00418.66
7.0.160.0070.00718.77
7.0.150.0090.00618.49
7.0.140.0090.00318.61
7.0.130.0110.00418.61
7.0.120.0100.00518.76
7.0.110.0150.00018.74
7.0.100.0120.00618.69
7.0.90.0160.00018.46
7.0.80.0080.00518.73
7.0.70.0130.00018.59
7.0.60.0090.03920.91
7.0.50.0090.02118.17
7.0.40.0080.03219.74
7.0.30.0170.02719.62
7.0.20.0220.04319.68
7.0.10.0070.04719.67
7.0.00.0030.02919.79
5.6.380.0080.00517.04
5.6.370.0060.00617.47
5.6.360.0120.00317.30
5.6.350.0090.00617.47
5.6.340.0130.00617.50
5.6.330.0120.00217.25
5.6.320.0090.00517.75
5.6.310.0080.01117.22
5.6.300.0090.00317.68
5.6.290.0070.00817.49
5.6.280.0060.04020.95
5.6.270.0040.00917.51
5.6.260.0140.00417.44
5.6.250.0090.00617.53
5.6.240.0000.01317.59
5.6.230.0120.00217.36
5.6.220.0140.00317.55
5.6.210.0090.04320.66
5.6.200.0110.03017.71
5.6.190.0080.03620.51
5.6.180.1740.01820.42
5.6.170.0180.02020.34
5.6.160.0080.02620.50
5.6.150.0070.04517.78
5.6.140.0030.04617.76
5.6.130.0080.03017.80
5.6.120.0070.03720.66
5.6.110.0110.04320.59
5.6.100.0110.03720.85
5.6.90.0080.04320.62
5.6.80.0130.02420.40
5.6.70.0770.03220.42
5.6.60.0080.00817.54
5.6.50.0110.00717.22
5.6.40.0080.00817.32
5.6.30.0120.00417.39
5.6.20.0130.00317.23
5.6.10.0070.00717.34
5.6.00.0130.00317.36
5.5.380.0000.01011.07
5.5.370.0080.00411.07
5.5.360.0090.00311.07
5.5.350.0030.04217.23
5.5.340.0070.04314.55
5.5.330.0020.02817.11
5.5.320.0190.04017.13
5.5.310.0190.02517.07
5.5.300.0060.03614.55
5.5.290.0030.04014.56
5.5.280.0050.04017.49
5.5.270.0090.04817.42
5.5.260.0090.04517.51
5.5.250.0100.02017.38
5.5.240.0150.03817.07
5.5.230.0110.00411.07
5.5.220.0070.00711.07
5.5.210.0130.00011.07
5.5.200.0110.00411.07
5.5.190.0030.00911.07
5.5.180.0040.00811.07
5.5.170.0140.00517.08
5.5.160.0050.00511.07
5.5.150.0070.00511.07
5.5.140.0080.00411.07
5.5.130.0100.00211.07
5.5.120.0040.00411.07
5.5.110.0080.00311.07
5.5.100.0070.00411.07
5.5.90.0030.00911.07
5.5.80.0040.00811.07
5.5.70.0080.00411.07
5.5.60.0040.00811.07
5.5.50.0110.00411.07
5.5.40.0090.00211.07
5.5.30.0120.00411.07
5.5.20.0090.00011.07
5.5.10.0070.00711.07
5.5.00.0050.00511.07
5.4.450.0170.03916.65
5.4.440.0170.03816.64
5.4.430.0250.03016.70
5.4.420.0180.03516.64
5.4.410.0270.02416.61
5.4.400.0270.02516.48
5.4.390.0220.02816.54
5.4.380.0200.03516.55
5.4.370.0220.02916.50
5.4.360.0230.02816.46
5.4.350.0250.02616.49
5.4.340.0220.03716.35
5.4.330.0100.00311.07
5.4.320.0260.02916.58
5.4.310.0200.03216.48
5.4.300.0260.02316.48
5.4.290.0170.03116.41
5.4.280.0170.03516.47
5.4.270.0230.02516.48
5.4.260.0150.03416.47
5.4.250.0210.02816.55
5.4.240.0270.02316.45
5.4.230.0220.03216.45
5.4.220.0180.03516.52
5.4.210.0300.02416.52
5.4.200.0280.01915.35
5.4.190.0230.02816.54
5.4.180.0330.02216.24
5.4.170.0250.02816.37
5.4.160.0230.02816.31
5.4.150.0230.03816.24
5.4.140.0210.02615.18
5.4.130.0180.03015.06
5.4.120.0210.02515.05
5.4.110.0190.02815.06
5.4.100.0210.02915.19
5.4.90.0250.02514.98
5.4.80.0210.02515.04
5.4.70.0170.03214.98
5.4.60.0220.02314.98
5.4.50.0220.02315.19
5.4.40.0270.02514.98
5.4.30.0200.02815.07
5.4.20.0240.02515.13
5.4.10.0230.03515.16
5.4.00.0230.03014.72

preferences:
63.71 ms | 401 KiB | 5 Q