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' ); $timezone = $intlDateFormatter->getTimeZone(); var_dump($timezone->getDisplayName()); $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.0140.02823.05
8.3.50.0150.02223.35
8.3.40.0160.00021.06
8.3.30.0040.01221.17
8.3.20.0080.00022.79
8.3.10.0000.00824.39
8.3.00.0060.00323.04
8.2.180.0420.02823.16
8.2.170.0090.00622.96
8.2.160.0150.00023.02
8.2.150.0060.00324.18
8.2.140.0040.00424.89
8.2.130.0090.00026.16
8.2.120.0130.00020.88
8.2.110.0100.00022.95
8.2.100.0040.00821.59
8.2.90.0000.00921.13
8.2.80.0060.00621.54
8.2.70.0030.00720.88
8.2.60.0030.00721.25
8.2.50.0000.00921.00
8.2.40.0060.00321.43
8.2.30.0060.00321.49
8.2.20.0030.00621.18
8.2.10.0000.00821.47
8.2.00.0050.00521.57
8.1.280.0310.02125.92
8.1.270.0040.00422.86
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00026.51
8.1.230.0060.00624.48
8.1.220.0000.00921.27
8.1.210.0030.00620.86
8.1.200.0000.01120.73
8.1.190.0090.00920.65
8.1.180.0080.00320.60
8.1.170.0000.00920.85
8.1.160.0000.00826.24
8.1.150.0070.00321.50
8.1.140.0060.00320.78
8.1.130.0000.00820.97
8.1.120.0030.00920.89
8.1.110.0080.00420.92
8.1.100.0040.00421.16
8.1.90.0030.00920.96
8.1.80.0050.00820.64
8.1.70.0030.00621.10
8.1.60.0090.00520.86
8.1.50.0060.00620.88
8.1.40.0120.00321.22
8.1.30.0120.00321.25
8.1.20.0000.00821.04
8.1.10.0000.01321.08
8.1.00.0040.01120.93
8.0.300.0060.00620.79
8.0.290.0060.00320.25
8.0.280.0040.00420.96
8.0.270.0050.00520.73
8.0.260.0040.00420.63
8.0.250.0050.00520.64
8.0.240.0040.00420.58
8.0.230.0070.00020.55
8.0.220.0070.00020.45
8.0.210.0040.00420.49
8.0.200.0000.00820.54
8.0.190.0060.00620.55
8.0.180.0090.00920.33
8.0.170.0070.00320.25
8.0.160.0050.00520.23
8.0.150.0040.00820.46
8.0.140.0040.00420.34
8.0.130.0000.00613.43
8.0.120.0000.00920.55
8.0.110.0000.00820.71
8.0.100.0030.00620.74
8.0.90.0030.00520.53
8.0.80.0140.00720.75
8.0.70.0090.00020.69
8.0.60.0050.00320.57
8.0.50.0030.00620.74
8.0.30.0150.01021.02
8.0.20.0100.01420.60
8.0.10.0080.00020.70
8.0.00.0120.01120.21
7.4.330.0060.00015.08
7.4.320.0060.00620.19
7.4.300.0050.00320.14
7.4.290.0000.00820.19
7.4.280.0030.00620.22
7.4.270.0000.00820.12
7.4.260.0060.00320.22
7.4.250.0060.00320.03
7.4.240.0040.00420.17
7.4.230.0080.00320.02
7.4.220.0140.01820.17
7.4.210.0100.00720.19
7.4.200.0040.00420.32
7.4.160.0120.00620.22
7.4.150.0140.01119.93
7.4.140.0060.01420.09
7.4.130.0110.01419.98
7.4.120.0130.01020.17
7.4.110.0070.01120.21
7.4.100.0170.00720.16
7.4.90.0150.00919.89
7.4.80.0030.02220.13
7.4.70.0220.00519.89
7.4.60.0140.00720.08
7.4.50.0070.00319.88
7.4.40.0140.01120.23
7.4.30.0230.00319.89
7.4.10.0240.00718.20
7.4.00.0140.00818.54
7.3.330.0030.00413.20
7.3.320.0000.00513.05
7.3.310.0080.00020.12
7.3.300.0080.00019.77
7.3.290.0090.00819.74
7.3.280.0120.01119.79
7.3.270.0150.00620.37
7.3.260.0170.01219.70
7.3.250.0140.00820.06
7.3.240.0160.01019.90
7.3.230.0110.01020.18
7.3.210.0110.01120.07
7.3.200.0040.01319.67
7.3.190.0030.01420.21
7.3.180.0060.01320.09
7.3.170.0100.02019.93
7.3.160.0130.01320.16
7.3.130.0220.00318.02
7.3.120.0120.01318.16
7.3.110.0140.01018.17
7.3.100.0090.00818.43
7.3.90.0070.00918.15
7.3.80.0070.00818.20
7.3.70.0080.00918.38
7.3.60.0050.01018.36
7.3.50.0080.00718.31
7.3.40.0060.00918.36
7.3.30.0090.00518.06
7.3.20.0080.00719.93
7.3.10.0060.00919.86
7.3.00.0060.00919.88
7.2.330.0140.00720.14
7.2.320.0140.00520.01
7.2.310.0080.01120.14
7.2.300.0030.01619.66
7.2.290.0090.00920.14
7.2.260.0200.00718.21
7.2.250.0140.00918.48
7.2.240.0080.01318.38
7.2.230.0100.00818.35
7.2.220.0060.01218.42
7.2.210.0040.01018.26
7.2.200.0100.00718.48
7.2.190.0070.01018.26
7.2.180.0060.00918.25
7.2.170.0060.01018.31
7.2.160.0030.01318.20
7.2.150.0030.01320.32
7.2.140.0040.01120.45
7.2.130.0030.01220.41
7.2.120.0030.01320.27
7.2.110.0070.00720.09
7.2.100.0030.01320.12
7.2.90.0070.01020.37
7.2.80.0110.00720.30
7.2.70.0030.00920.42
7.2.60.0050.00720.36
7.2.50.0080.00420.48
7.2.40.0040.01220.40
7.2.30.0140.00320.33
7.2.20.0070.00720.61
7.2.10.0040.01220.29
7.2.00.0000.01320.35
7.1.330.0060.00919.27
7.1.320.0030.01119.27
7.1.310.0030.01219.16
7.1.300.0080.00719.32
7.1.290.0080.00819.26
7.1.280.0050.00919.30
7.1.270.0030.01319.40
7.1.260.0010.01219.36
7.1.250.0040.01219.31
7.1.240.0000.01019.55
7.1.230.0000.01319.42
7.1.220.0030.01219.19
7.1.210.0070.00719.34
7.1.200.0050.01019.48
7.1.190.0120.00319.26
7.1.180.0060.00619.36
7.1.170.0040.00819.16
7.1.160.0040.01119.34
7.1.150.0000.01519.49
7.1.140.0120.00419.44
7.1.130.0040.01419.54
7.1.120.0070.00719.34
7.1.110.0000.01019.65
7.1.100.0050.00820.49
7.1.90.0040.00819.13
7.1.80.0000.01719.43
7.1.70.0070.00820.13
7.1.60.0080.01020.13
7.1.50.0050.01420.04
7.1.40.0030.01219.33
7.1.30.0090.00419.29
7.1.20.0070.00719.53
7.1.10.0040.01219.40
7.1.00.0080.03822.75
7.0.330.0030.01019.23
7.0.320.0090.00918.83
7.0.310.0030.00718.91
7.0.300.0060.00919.06
7.0.290.0000.00919.09
7.0.280.0030.01019.21
7.0.270.0070.00719.02
7.0.260.0040.00718.88
7.0.250.0070.01118.89
7.0.240.0000.00919.15
7.0.230.0040.00818.95
7.0.220.0040.00819.15
7.0.210.0030.00718.80
7.0.200.0120.00319.81
7.0.190.0030.00919.26
7.0.180.0120.00318.96
7.0.170.0000.00919.13
7.0.160.0040.01118.79
7.0.150.0070.00719.12
7.0.140.0000.01219.05
7.0.130.0030.01018.86
7.0.120.0000.00918.89
7.0.110.0000.01518.97
7.0.100.0060.00919.03
7.0.90.0030.01018.79
7.0.80.0110.00418.80
7.0.70.0000.00918.75
7.0.60.0100.04321.19
7.0.50.0110.03818.39
7.0.40.0090.04320.14
7.0.30.0150.04220.21
7.0.20.0120.02420.22
7.0.10.0180.01820.16
7.0.00.0090.02720.14
5.6.400.0140.00017.79
5.6.390.0110.00417.95
5.6.380.0060.00917.72
5.6.370.0030.00918.16
5.6.360.0070.00718.12
5.6.350.0100.00318.02
5.6.340.0070.00717.63
5.6.330.0110.00417.80
5.6.320.0030.00617.69
5.6.310.0000.01017.81
5.6.300.0030.01117.95
5.6.290.0030.01518.09
5.6.280.0030.03721.31
5.6.270.0000.01418.19
5.6.260.0070.00717.89
5.6.250.0050.00517.85
5.6.240.0100.00617.98
5.6.230.0070.00317.93
5.6.220.0100.00617.74
5.6.210.0050.04520.84
5.6.200.0060.04518.04
5.6.190.0030.03420.83
5.6.180.0050.03720.81
5.6.170.0240.01620.95
5.6.160.0080.03320.78
5.6.150.0080.03217.99
5.6.140.0030.03318.15
5.6.130.0020.03717.95
5.6.120.0050.04021.33
5.6.110.0070.05021.26
5.6.100.0090.02421.00
5.6.90.0070.05120.98
5.6.80.0070.03720.71
5.6.70.2280.02220.78
5.6.60.0060.00617.69
5.6.50.0060.00617.74
5.6.40.0040.01117.56
5.6.30.0030.01017.57
5.6.20.0130.00317.96
5.6.10.0030.00617.79
5.6.00.0070.01117.55
5.5.380.0030.00917.80
5.5.370.0140.00017.95
5.5.360.0060.00918.09
5.5.350.0050.04520.97
5.5.340.0050.04717.87
5.5.330.0030.03820.70
5.5.320.0180.04220.68
5.5.310.0270.03820.83
5.5.300.0030.03617.92
5.5.290.0090.04217.91
5.5.280.0030.05020.89
5.5.270.0110.04621.27
5.5.260.0030.05320.95
5.5.250.0110.03921.00
5.5.240.0070.04520.75
5.5.230.0100.00617.79
5.5.220.0070.01017.52
5.5.210.0030.00917.68
5.5.200.0030.00717.70
5.5.190.0000.01417.86
5.5.180.0100.00317.84
5.5.170.0090.00617.57
5.5.160.0030.00917.89
5.5.150.0040.00817.93
5.5.140.0060.00917.38
5.5.130.0040.01117.92
5.5.120.0030.01017.52
5.5.110.0030.01017.84
5.5.100.0000.01117.56
5.5.90.0040.00817.43
5.5.80.0070.00717.85
5.5.70.0040.00717.64
5.5.60.0000.01017.21
5.5.50.0030.00617.66
5.5.40.0060.00917.96
5.5.30.0040.00717.54
5.5.20.0100.00317.36
5.5.10.0150.00318.03
5.5.00.0100.00017.35
5.4.450.0100.03717.57
5.4.440.0230.03717.58
5.4.430.0230.02317.63
5.4.420.0180.02717.71
5.4.410.0190.03017.64
5.4.400.0180.03017.55
5.4.390.0150.02817.42
5.4.380.0170.02817.57
5.4.370.0190.02717.42
5.4.360.0120.03017.42
5.4.350.0170.03217.59
5.4.340.0120.03217.53
5.4.330.0060.00313.18
5.4.320.0150.03017.42
5.4.310.0170.03417.47
5.4.300.0120.03517.36
5.4.290.0170.03117.53
5.4.280.0130.03217.46
5.4.270.0180.02817.41
5.4.260.0150.03317.42
5.4.250.0220.03817.50
5.4.240.0220.02517.40
5.4.230.0160.03017.41
5.4.220.0170.03117.47
5.4.210.0080.03817.34
5.4.200.0190.02316.18
5.4.190.0150.03017.54
5.4.180.0100.03317.26
5.4.170.0230.03517.20
5.4.160.0140.02717.43
5.4.150.0160.02617.27
5.4.140.0180.02816.10
5.4.130.0200.02816.24
5.4.120.0220.03716.24
5.4.110.0120.02916.24
5.4.100.0160.02516.23
5.4.90.0250.03116.23
5.4.80.0140.03016.00
5.4.70.0130.03516.10
5.4.60.0220.02216.09
5.4.50.0120.02815.98
5.4.40.0130.03015.96
5.4.30.0170.02315.99
5.4.20.0160.02316.00
5.4.10.0080.03316.20
5.4.00.0120.02915.74

preferences:
56.53 ms | 401 KiB | 5 Q