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' ); var_dump($intlDateFormatter->getTimeZone()); $intlDateFormatter->setLenient(false); $date = '1990-03-24'; $res = $intlDateFormatter->parse($date); echo "$date - $res\n"; // 1990-03-24 - 638229600 $date = '1990-03-25'; //$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.0100.01722.40
8.3.50.0100.03423.13
8.3.40.0060.00921.04
8.3.30.0160.00020.76
8.3.20.0080.00022.55
8.3.10.0030.00623.98
8.3.00.0060.00322.51
8.2.180.0130.02320.75
8.2.170.0160.00022.96
8.2.160.0070.00722.78
8.2.150.0030.00624.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0060.00920.63
8.2.110.0030.00723.68
8.2.100.0070.00720.63
8.2.90.0050.00521.53
8.2.80.0030.00620.38
8.2.70.0040.00420.50
8.2.60.0030.00920.91
8.2.50.0060.00320.50
8.2.40.0080.00024.07
8.2.30.0060.00321.01
8.2.20.0050.00320.77
8.2.10.0040.00421.04
8.2.00.0060.00321.12
8.1.280.0110.02925.92
8.1.270.0060.00922.67
8.1.260.0100.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00326.05
8.1.230.0120.00420.35
8.1.220.0080.00020.66
8.1.210.0060.00320.36
8.1.200.0030.00620.35
8.1.190.0040.00420.23
8.1.180.0080.00020.43
8.1.170.0090.00021.44
8.1.160.0000.00825.90
8.1.150.0090.00021.13
8.1.140.0090.00020.29
8.1.130.0000.00820.65
8.1.120.0060.00320.41
8.1.110.0030.00620.44
8.1.100.0030.00620.38
8.1.90.0030.00520.56
8.1.80.0000.00820.58
8.1.70.0040.00420.31
8.1.60.0090.00020.62
8.1.50.0040.00420.68
8.1.40.0030.00620.71
8.1.30.0000.01020.98
8.1.20.0050.00520.97
8.1.10.0040.00420.56
8.1.00.0000.01220.52
8.0.300.0050.00319.85
8.0.290.0040.00419.63
8.0.280.0000.00820.75
8.0.270.0030.00619.83
8.0.260.0040.00420.27
8.0.250.0040.00420.15
8.0.240.0000.00820.12
8.0.230.0000.00820.07
8.0.220.0040.00420.14
8.0.210.0000.00819.95
8.0.200.0070.00020.16
8.0.190.0060.00320.14
8.0.180.0110.00020.04
8.0.170.0000.00919.95
8.0.160.0040.00419.95
8.0.150.0000.00820.00
8.0.140.0040.00419.85
8.0.130.0000.00613.35
8.0.120.0030.00619.85
8.0.110.0030.00519.88
8.0.100.0030.00620.14
8.0.90.0000.00820.27
8.0.80.0150.00320.30
8.0.70.0030.00519.94
8.0.60.0040.00420.23
8.0.50.0000.00919.86
8.0.30.0110.00820.34
8.0.20.0100.01220.07
8.0.10.0000.00820.16
8.0.00.0060.01519.94
7.4.330.0050.00015.08
7.4.320.0070.00019.94
7.4.300.0040.00419.72
7.4.290.0070.00019.86
7.4.280.0040.00419.91
7.4.270.0070.00019.80
7.4.260.0050.00319.74
7.4.250.0070.00319.82
7.4.240.0050.00319.77
7.4.230.0080.00019.70
7.4.220.0140.00719.84
7.4.210.0060.01019.83
7.4.200.0000.00819.66
7.4.160.0030.01319.61
7.4.150.0070.01419.70
7.4.140.0100.01319.76
7.4.130.0110.00919.61
7.4.120.0140.00519.68
7.4.110.0140.01119.70
7.4.100.0200.00319.52
7.4.90.0090.00919.74
7.4.80.0110.00719.63
7.4.70.0110.01419.74
7.4.60.0070.01119.84
7.4.50.0000.00519.55
7.4.40.0070.01119.83
7.4.30.0130.00619.61
7.4.00.0070.00917.99
7.3.330.0050.00013.00
7.3.320.0030.00313.13
7.3.310.0040.00419.46
7.3.300.0030.00619.59
7.3.290.0080.00919.62
7.3.280.0110.01119.43
7.3.270.0160.00619.64
7.3.260.0110.01019.71
7.3.250.0170.00719.52
7.3.240.0070.01119.92
7.3.230.0030.01919.55
7.3.210.0080.01219.48
7.3.200.0080.01119.69
7.3.190.0070.01119.65
7.3.180.0090.01019.46
7.3.170.0170.00719.91
7.3.160.0170.00619.73
7.3.120.0060.01218.14
7.3.110.0120.00617.49
7.3.100.0030.01317.80
7.3.90.0150.00317.77
7.3.80.0060.00617.97
7.3.70.0070.01017.98
7.3.60.0100.00317.71
7.3.50.0030.00717.90
7.3.40.0030.00917.73
7.3.30.0110.00417.75
7.3.20.0070.00719.60
7.3.10.0030.01019.70
7.3.00.0050.01119.44
7.2.330.0150.00919.68
7.2.320.0110.00819.59
7.2.310.0150.00719.54
7.2.300.0140.00719.87
7.2.290.0070.01919.66
7.2.250.0100.01018.22
7.2.240.0140.00718.18
7.2.230.0040.01117.88
7.2.220.0070.00717.79
7.2.210.0000.01017.97
7.2.200.0130.00318.15
7.2.190.0030.01218.03
7.2.180.0060.01217.74
7.2.170.0040.01118.12
7.2.130.0080.00419.80
7.2.120.0070.00720.01
7.2.110.0120.01319.78
7.2.100.0090.00319.93
7.2.90.0030.01319.83
7.2.80.0110.00619.87
7.2.70.0060.00919.95
7.2.60.0070.00820.07
7.2.50.0000.00919.86
7.2.40.0100.00319.91
7.2.30.0060.00619.89
7.2.20.0000.01719.74
7.2.10.0090.00620.09
7.2.00.0100.00921.20
7.1.330.0070.00718.98
7.1.320.0070.01018.68
7.1.310.0060.00618.76
7.1.300.0030.00618.76
7.1.290.0100.00319.00
7.1.280.0030.00619.01
7.1.270.0060.00918.95
7.1.260.0060.00618.59
7.1.250.0030.00618.94
7.1.200.0150.00618.97
7.1.100.0090.01221.30
7.1.70.0040.00720.48
7.1.60.0060.01620.76
7.1.50.0070.01320.54
7.1.40.0000.01119.93
7.1.30.0070.01519.98
7.1.20.0060.00620.16
7.1.10.0030.02319.98
7.1.00.0090.00919.69
7.0.200.0070.01020.33
7.0.190.0030.00820.13
7.0.180.0070.00419.71
7.0.170.0040.00819.54
7.0.160.0000.00919.69
7.0.150.0030.01719.50
7.0.140.0040.01419.72
7.0.130.0060.00619.68
7.0.120.0000.01219.57
7.0.110.0050.00519.80
7.0.100.0070.00719.38
7.0.90.0040.01119.40
7.0.80.0000.01119.62
7.0.70.0050.00319.36
7.0.60.0070.00319.50
7.0.50.0090.00619.45
7.0.40.0000.01617.85
7.0.30.0000.01517.85
7.0.20.0050.00517.85
7.0.10.0100.00717.85
7.0.00.0030.00717.85
5.6.300.0030.07123.73
5.6.290.0030.07023.81
5.6.280.0000.05223.95
5.6.270.0070.04923.96
5.6.260.0070.04724.06
5.6.250.0070.04924.16
5.6.240.0100.07623.95
5.6.230.0030.04323.91
5.6.220.0190.05524.03
5.6.210.0030.07023.86
5.6.200.0070.05624.00
5.6.190.0030.08523.90
5.6.180.0070.04724.04
5.6.170.0000.04324.00
5.6.160.0030.04423.97
5.6.150.0000.05423.96
5.6.140.0070.04023.92
5.6.130.0030.04324.00
5.6.120.0100.03524.16
5.6.110.0030.06023.91
5.6.100.0060.04423.98
5.6.90.0030.05223.97
5.6.80.0100.07223.29
5.6.70.0030.07923.31
5.6.60.0070.03823.24
5.6.50.0000.05623.30
5.6.40.0030.03923.52
5.6.30.0170.03623.47
5.6.20.0030.08123.29
5.6.10.0040.03923.35
5.6.00.0030.04123.29
5.5.380.0000.04217.85
5.5.370.0070.04317.85
5.5.360.0070.08417.85
5.5.350.0030.07817.85
5.5.340.0070.07717.94
5.5.330.0130.07017.96
5.5.320.0000.04918.03
5.5.310.0000.04117.85
5.5.300.0030.03817.85
5.5.290.0030.04718.07
5.5.280.0030.07618.07
5.5.270.0030.04017.94
5.5.260.0070.03718.05
5.5.250.0000.07517.89
5.5.240.0030.05017.85
5.5.230.0100.07417.85
5.5.220.0070.07517.85
5.5.210.0130.08017.85
5.5.200.0030.03717.85
5.5.190.0000.08317.85
5.5.180.0030.03817.85
5.5.160.0040.03917.85
5.5.150.0040.04217.85
5.5.140.0070.05617.85
5.5.130.0030.03717.85
5.5.120.0000.06417.85
5.5.110.0100.06917.85
5.5.100.0000.06917.85
5.5.90.0100.06017.85
5.5.80.0000.04517.85
5.5.70.0000.04117.85
5.5.60.0100.03017.85
5.5.50.0070.06717.85
5.5.40.0030.04417.85
5.5.30.0000.03917.85
5.5.20.0030.04717.85
5.5.10.0100.06617.85
5.5.00.0000.07717.85
5.4.450.0070.04021.82
5.4.440.0030.04021.88
5.4.430.0130.06921.99
5.4.420.0000.08522.01
5.4.410.0030.07621.90
5.4.400.0070.05421.74
5.4.390.0030.04021.75
5.4.380.0070.06021.80
5.4.370.0070.05321.55
5.4.360.0070.03721.50
5.4.350.0100.07621.50
5.4.340.0070.04021.64
5.4.320.0030.07221.61
5.4.310.0070.03421.74
5.4.300.0070.07421.55
5.4.290.0060.04221.99
5.4.280.0060.03521.60
5.4.270.0100.06821.67
5.4.260.0030.04021.60
5.4.250.0000.04221.70
5.4.240.0030.04021.45
5.4.230.0040.03921.70
5.4.220.0000.05621.60
5.4.210.0070.08021.46
5.4.200.0030.06521.63
5.4.190.0130.06921.74
5.4.180.0000.04121.56
5.4.170.0000.05021.62
5.4.160.0070.03821.97
5.4.150.0000.04421.43
5.4.140.0070.03919.31
5.4.130.0070.03319.10
5.4.120.0030.03618.96
5.4.110.0060.03218.89
5.4.100.0070.05119.31
5.4.90.0030.03619.20
5.4.80.0070.07119.32
5.4.70.0030.07318.94
5.4.60.0070.05219.21
5.4.50.0030.04119.23
5.4.40.0070.07419.39
5.4.30.0030.04419.33
5.4.20.0070.03319.20
5.4.10.0030.05619.49
5.4.00.0060.04818.64

preferences:
56.85 ms | 401 KiB | 5 Q