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' ); $intlDateFormatter->setLenient(false); $date = '1990-03-24'; $res = $intlDateFormatter->parse($date); echo "$date - $res\n"; // 1990-03-24 - 638229600 $date = '1990-03-25 01:00: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'; $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.0090.01922.30
8.3.50.0120.01620.14
8.3.40.0060.00920.67
8.3.30.0060.00920.92
8.3.20.0060.00322.46
8.3.10.0080.00023.80
8.3.00.0030.00622.56
8.2.180.0140.02222.54
8.2.170.0100.01322.96
8.2.160.0140.00422.62
8.2.150.0090.00025.66
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0060.00322.77
8.2.110.0080.00323.89
8.2.100.0060.00620.91
8.2.90.0070.00220.75
8.2.80.0110.00320.93
8.2.70.0060.00320.63
8.2.60.0040.00720.93
8.2.50.0160.00020.36
8.2.40.0030.00624.07
8.2.30.0000.00822.75
8.2.20.0060.00320.66
8.2.10.0030.00521.01
8.2.00.0040.00420.97
8.1.280.0070.02225.92
8.1.270.0000.00824.35
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0050.00523.85
8.1.230.0060.00620.77
8.1.220.0060.00320.80
8.1.210.0090.00020.35
8.1.200.0070.00320.23
8.1.190.0000.00820.11
8.1.180.0040.00420.40
8.1.170.0080.00821.37
8.1.160.0000.00824.30
8.1.150.0030.00621.11
8.1.140.0090.00020.41
8.1.130.0040.00420.58
8.1.120.0000.00820.61
8.1.110.0030.00520.61
8.1.100.0000.00820.54
8.1.90.0000.00820.50
8.1.80.0120.00020.25
8.1.70.0030.00520.47
8.1.60.0060.00320.50
8.1.50.0090.00020.66
8.1.40.0030.00620.61
8.1.30.0060.00320.99
8.1.20.0070.00321.00
8.1.10.0060.00320.73
8.1.00.0080.00020.44
8.0.300.0090.00019.72
8.0.290.0060.00319.75
8.0.280.0000.00820.68
8.0.270.0030.00520.30
8.0.260.0070.00020.27
8.0.250.0040.00420.16
8.0.240.0000.00720.19
8.0.230.0000.00820.09
8.0.220.0040.00419.99
8.0.210.0060.00320.11
8.0.200.0090.00020.14
8.0.190.0060.00320.09
8.0.180.0050.00319.93
8.0.170.0000.00819.91
8.0.160.0090.00019.78
8.0.150.0040.00419.66
8.0.140.0000.00819.88
8.0.130.0000.00713.30
8.0.120.0000.00919.98
8.0.110.0060.00320.16
8.0.100.0050.00320.15
8.0.90.0040.00419.91
8.0.80.0120.01220.31
8.0.70.0030.00619.81
8.0.60.0080.00020.30
8.0.50.0080.00019.87
8.0.30.0080.01320.00
8.0.20.0180.00520.00
8.0.10.0030.00520.33
8.0.00.0130.00519.88
7.4.330.0030.00315.08
7.4.320.0080.00019.87
7.4.300.0000.00719.90
7.4.290.0040.00419.69
7.4.280.0000.00819.71
7.4.270.0070.00019.83
7.4.260.0000.00719.75
7.4.250.0040.00419.80
7.4.240.0050.00319.77
7.4.230.0000.00819.75
7.4.220.0130.00919.77
7.4.210.0100.00719.81
7.4.200.0040.00419.79
7.4.160.0110.00619.71
7.4.150.0130.01019.48
7.4.140.0150.01319.71
7.4.130.0070.01219.59
7.4.120.0100.01219.76
7.4.110.0150.00919.60
7.4.100.0090.01119.64
7.4.90.0060.01419.54
7.4.80.0100.01319.76
7.4.70.0100.01019.87
7.4.60.0070.01019.55
7.4.50.0000.00919.59
7.4.40.0150.00419.53
7.4.30.0180.00719.69
7.4.10.0220.00618.09
7.4.00.0080.01118.07
7.3.330.0050.00013.10
7.3.320.0000.00513.22
7.3.310.0030.00619.74
7.3.300.0070.00019.30
7.3.290.0110.00519.60
7.3.280.0080.01319.49
7.3.270.0100.01019.94
7.3.260.0130.00619.89
7.3.250.0100.01119.57
7.3.240.0100.01019.67
7.3.230.0120.00819.61
7.3.210.0060.01219.11
7.3.200.0000.02219.88
7.3.190.0090.00919.59
7.3.180.0110.00719.59
7.3.170.0110.00719.84
7.3.160.0140.01119.80
7.3.130.0170.00918.01
7.3.120.0110.01217.88
7.3.110.0110.01118.11
7.3.100.0050.01317.92
7.3.90.0070.00717.80
7.3.80.0080.00817.89
7.3.70.0070.00718.04
7.3.60.0050.00517.95
7.3.50.0060.00517.91
7.3.40.0070.00717.84
7.3.30.0050.00817.88
7.3.20.0050.00819.49
7.3.10.0020.01019.56
7.3.00.0060.00519.31
7.2.330.0180.00319.63
7.2.320.0090.00919.60
7.2.310.0060.01219.56
7.2.300.0110.00719.86
7.2.290.0000.01719.37
7.2.260.0130.01018.14
7.2.250.0130.00817.87
7.2.240.0040.01517.95
7.2.230.0090.00717.79
7.2.220.0110.00918.03
7.2.210.0060.00818.01
7.2.200.0070.00618.00
7.2.190.0070.01117.95
7.2.180.0070.00917.88
7.2.170.0110.00317.97
7.2.160.0060.00617.75
7.2.150.0110.00320.00
7.2.140.0030.01019.86
7.2.130.0040.01120.11
7.2.120.0140.00319.89
7.2.110.0090.00919.89
7.2.100.0130.00319.89
7.2.90.0030.00919.75
7.2.80.0070.01120.04
7.2.70.0030.01419.88
7.2.60.0060.00919.95
7.2.50.0070.00720.15
7.2.40.0130.00620.11
7.2.30.0080.00419.88
7.2.20.0070.01320.21
7.2.10.0080.00819.93
7.2.00.0080.00821.49
7.1.330.0080.00719.08
7.1.320.0020.00918.88
7.1.310.0030.00919.06
7.1.300.0050.00919.19
7.1.290.0020.01419.05
7.1.280.0030.01119.02
7.1.270.0020.01419.06
7.1.260.0020.01018.86
7.1.250.0000.01218.71
7.1.240.0000.01418.98
7.1.230.0060.00918.97
7.1.220.0060.00918.94
7.1.210.0030.00918.90
7.1.200.0060.01219.00
7.1.190.0070.01019.04
7.1.180.0120.00019.00
7.1.170.0120.00618.95
7.1.160.0060.00619.06
7.1.150.0040.01119.09
7.1.140.0040.01118.82
7.1.130.0060.00619.00
7.1.120.0120.00318.97
7.1.110.0070.00419.05
7.1.100.0050.01120.39
7.1.90.0060.01019.05
7.1.80.0060.00618.70
7.1.70.0030.00919.81
7.1.60.0020.01320.00
7.1.50.0080.00919.62
7.1.40.0070.00718.83
7.1.30.0090.00319.25
7.1.20.0040.01118.78
7.1.10.0070.00719.05
7.1.00.0070.04222.35
7.0.330.0070.00718.53
7.0.320.0040.01118.63
7.0.310.0060.01218.78
7.0.300.0030.01018.79
7.0.290.0110.00418.63
7.0.280.0080.00818.55
7.0.270.0070.00718.32
7.0.260.0060.01018.52
7.0.250.0090.00918.55
7.0.240.0060.00618.82
7.0.230.0040.00818.78
7.0.220.0040.01118.59
7.0.210.0030.01218.57
7.0.200.0060.00819.45
7.0.190.0000.01318.91
7.0.180.0040.00718.43
7.0.170.0040.00718.83
7.0.160.0070.00718.80
7.0.150.0090.00618.65
7.0.140.0070.01018.50
7.0.130.0090.00018.58
7.0.120.0040.01118.48
7.0.110.0060.00618.41
7.0.100.0140.04020.75
7.0.90.0100.04020.83
7.0.80.0070.04320.81
7.0.70.0150.04720.83
7.0.60.0120.02520.83
7.0.50.0110.04121.02
7.0.40.0070.04319.90
7.0.30.0080.04919.97
7.0.20.0100.04519.81
7.0.10.0050.02719.89
7.0.00.0050.04419.77
5.6.400.0140.00017.23
5.6.390.0120.00417.41
5.6.380.0060.00617.30
5.6.370.0060.01217.39
5.6.360.0060.01017.60
5.6.350.0090.00317.62
5.6.340.0070.01117.45
5.6.330.0080.00817.62
5.6.320.0100.00317.32
5.6.310.0000.00917.46
5.6.300.0070.01017.54
5.6.290.0070.00717.33
5.6.280.0070.02521.00
5.6.270.0060.00917.54
5.6.260.0120.00317.72
5.6.250.0150.04120.54
5.6.240.0120.03820.60
5.6.230.0030.03520.69
5.6.220.0060.03120.68
5.6.210.0030.03720.64
5.6.200.0100.04520.88
5.6.190.0080.04820.78
5.6.180.0100.03720.75
5.6.170.0150.04020.74
5.6.160.0120.02320.90
5.6.150.0130.04020.59
5.6.140.0080.04320.74
5.6.130.0070.03020.77
5.6.120.0100.03720.55
5.6.110.0080.02820.80
5.6.100.0080.04520.81
5.6.90.0130.04320.67
5.6.80.0000.03420.37
5.6.70.0030.04320.23
5.6.60.0130.03820.48
5.6.50.0140.03520.33
5.6.40.0080.03520.46
5.6.30.0100.04020.55
5.6.20.0080.02720.21
5.6.10.0120.03820.46
5.6.00.0080.02920.43
5.5.380.0080.02620.62
5.5.370.0030.03920.32
5.5.360.0150.04220.53
5.5.350.0080.02920.65
5.5.340.0100.04220.72
5.5.330.0120.03520.48
5.5.320.0120.04220.52
5.5.310.0070.02420.70
5.5.300.0100.03320.76
5.5.290.0080.03920.75
5.5.280.0080.02220.65
5.5.270.0070.02520.71
5.5.260.0120.02820.62
5.5.250.0130.02320.53
5.5.240.0070.04920.22
5.5.230.0050.04520.14
5.5.220.0050.03620.20
5.5.210.0050.04220.29
5.5.200.0070.03020.29
5.5.190.0050.04520.24
5.5.180.0130.03820.33
5.5.170.0030.00917.42
5.5.160.0090.02620.32
5.5.150.0110.03720.10
5.5.140.0050.04020.02
5.5.130.0050.03120.41
5.5.120.0060.03720.42
5.5.110.0090.03220.21
5.5.100.0120.03420.23
5.5.90.0110.02820.20
5.5.80.0120.03520.41
5.5.70.0090.03320.25
5.5.60.0100.03820.17
5.5.50.0110.03220.11
5.5.40.0130.02220.25
5.5.30.0070.02520.37
5.5.20.0100.02120.34
5.5.10.0070.02819.95
5.5.00.0120.04020.19
5.4.450.0100.04016.25
5.4.440.0050.03816.62
5.4.430.0050.04516.47
5.4.420.0050.03516.60
5.4.410.0090.03916.40
5.4.400.0070.03016.28
5.4.390.0100.02216.26
5.4.380.0030.02916.24
5.4.370.0030.02816.25
5.4.360.0070.03815.96
5.4.350.0020.02616.50
5.4.340.0030.04816.34
5.4.330.0060.00610.66
5.4.320.0050.03316.36
5.4.310.0090.03116.13
5.4.300.0070.03616.15
5.4.290.0070.03116.32
5.4.280.0070.04016.14
5.4.270.0070.02316.42
5.4.260.0050.02515.99
5.4.250.0050.03616.24
5.4.240.0040.02216.30
5.4.230.0050.04316.53
5.4.220.0050.04216.30
5.4.210.0080.03916.26
5.4.200.0090.03616.31
5.4.190.0050.02316.19
5.4.180.0080.02216.37
5.4.170.0050.04616.32
5.4.160.0060.04016.29
5.4.150.0010.03116.25
5.4.140.0060.02314.81
5.4.130.0050.02814.76
5.4.120.0040.03714.86
5.4.110.0050.02714.91
5.4.100.0070.03915.05
5.4.90.0030.02814.80
5.4.80.0080.03314.95
5.4.70.0070.03314.97
5.4.60.0070.02614.95
5.4.50.0080.02514.94
5.4.40.0100.01714.74
5.4.30.0120.03015.03
5.4.20.0030.02114.83
5.4.10.0080.01814.73
5.4.00.0090.02614.69

preferences:
56.5 ms | 401 KiB | 5 Q