3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intlDateFormatter = new IntlDateFormatter( 'en_GB', IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE, 'Europe/London', 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.0030.02720.88
8.3.50.0260.02523.40
8.3.40.0030.01321.25
8.3.30.0060.00921.41
8.3.20.0030.00523.05
8.3.10.0050.00324.62
8.3.00.0030.00626.26
8.2.180.0130.01622.79
8.2.170.0060.01022.96
8.2.160.0150.00023.06
8.2.150.0030.00624.18
8.2.140.0090.00024.66
8.2.130.0060.00323.33
8.2.120.0040.00426.35
8.2.110.0060.00624.75
8.2.100.0070.00721.40
8.2.90.0060.00321.92
8.2.80.0030.00621.55
8.2.70.0130.00620.88
8.2.60.0050.01021.30
8.2.50.0050.00521.00
8.2.40.0060.00323.22
8.2.30.0080.00422.09
8.2.20.0000.00821.18
8.2.10.0130.00321.50
8.2.00.0090.00021.68
8.1.280.0130.01625.92
8.1.270.0060.00324.83
8.1.260.0050.00528.09
8.1.250.0090.00028.09
8.1.240.0040.00725.14
8.1.230.0040.00822.60
8.1.220.0060.00321.39
8.1.210.0060.00320.98
8.1.200.0040.00720.73
8.1.190.0060.00320.60
8.1.180.0140.00320.55
8.1.170.0090.00022.14
8.1.160.0040.00423.47
8.1.150.0030.00621.42
8.1.140.0120.00420.77
8.1.130.0040.00421.08
8.1.120.0000.00821.00
8.1.110.0030.00621.13
8.1.100.0040.00421.14
8.1.90.0000.00821.13
8.1.80.0040.00421.14
8.1.70.0060.00320.91
8.1.60.0090.00020.93
8.1.50.0000.01021.14
8.1.40.0060.00320.95
8.1.30.0000.00921.33
8.1.20.0000.00921.33
8.1.10.0090.00021.14
8.1.00.0030.00620.96
8.0.300.0080.00020.60
8.0.290.0030.00620.25
8.0.280.0000.00921.21
8.0.270.0060.00420.35
8.0.260.0070.00020.75
8.0.250.0040.00420.54
8.0.240.0040.00720.50
8.0.230.0040.00420.55
8.0.220.0030.00520.53
8.0.210.0100.00020.54
8.0.200.0000.00720.61
8.0.190.0230.00620.52
8.0.180.0030.00620.36
8.0.170.0030.00620.43
8.0.160.0000.00920.28
8.0.150.0000.00920.27
8.0.140.0060.00320.57
8.0.130.0000.00613.39
8.0.120.0060.00320.47
8.0.110.0000.00920.58
8.0.100.0030.00620.67
8.0.90.0040.00420.31
8.0.80.0140.01420.25
8.0.70.0030.00620.69
8.0.60.0030.00620.63
8.0.50.0030.00620.57
8.0.30.0140.00720.67
8.0.20.0080.01320.90
8.0.10.0000.00820.73
8.0.00.0150.00820.31
7.4.330.0030.00316.70
7.4.320.0040.00420.22
7.4.300.0000.00820.29
7.4.290.0000.00820.26
7.4.280.0070.00320.11
7.4.270.0030.00520.28
7.4.260.0060.00619.79
7.4.250.0060.00320.27
7.4.240.0060.00320.25
7.4.230.0040.00420.36
7.4.220.0060.01620.21
7.4.210.0140.00920.29
7.4.200.0060.00320.28
7.4.160.0090.00920.20
7.4.150.0180.00820.27
7.4.140.0110.01020.11
7.4.130.0070.01820.26
7.4.120.0050.01420.17
7.4.110.0040.01619.92
7.4.100.0110.00820.17
7.4.90.0130.00720.10
7.4.80.0100.01320.05
7.4.70.0170.00320.18
7.4.60.0090.00920.14
7.4.50.0070.00719.84
7.4.40.0130.01320.08
7.4.30.0060.01420.11
7.4.10.0180.00718.59
7.4.00.0100.01418.66
7.3.330.0030.00313.05
7.3.320.0000.00513.18
7.3.310.0080.00020.14
7.3.300.0080.00020.10
7.3.290.0050.00319.98
7.3.280.0170.00820.02
7.3.270.0100.01020.27
7.3.260.0140.00620.09
7.3.240.0130.01120.09
7.3.230.0150.00320.28
7.3.210.0150.00320.25
7.3.200.0120.00920.30
7.3.190.0070.01419.88
7.3.180.0030.01420.14
7.3.170.0060.01620.05
7.3.160.0140.00420.21
7.3.130.0110.01518.26
7.3.120.0110.01118.45
7.3.110.0090.01618.13
7.3.100.0050.01218.16
7.3.90.0050.01218.14
7.3.80.0050.01218.52
7.3.70.0080.00818.30
7.3.60.0060.00818.46
7.3.50.0050.01118.32
7.3.40.0100.00518.31
7.3.30.0110.00318.39
7.3.20.0070.00819.92
7.3.10.0080.00619.99
7.3.00.0090.00720.01
7.2.330.0100.01020.19
7.2.320.0110.00920.16
7.2.310.0300.01019.83
7.2.300.0230.01319.98
7.2.290.0060.01220.16
7.2.260.0120.01618.43
7.2.250.0190.00718.20
7.2.240.0050.01118.60
7.2.230.0100.00818.70
7.2.220.0080.00818.52
7.2.210.0030.01018.45
7.2.200.0070.00818.51
7.2.190.0010.01118.60
7.2.180.0030.01018.28
7.2.170.0090.00718.40
7.2.160.0050.00718.51
7.2.150.0080.00520.27
7.2.140.0100.00420.29
7.2.130.0080.00820.31
7.2.120.0080.00820.26
7.2.110.0050.00920.29
7.2.100.0060.00620.17
7.2.90.0100.00320.54
7.2.80.0040.01320.25
7.2.70.0000.01520.24
7.2.60.0050.01020.40
7.2.50.0100.00620.34
7.2.40.0050.01020.47
7.2.30.0070.00720.45
7.2.20.0050.00920.51
7.2.10.0050.01220.52
7.2.00.0010.01321.38
7.1.330.0100.00719.41
7.1.320.0090.00819.40
7.1.310.0060.01019.40
7.1.300.0090.00719.36
7.1.290.0030.00819.49
7.1.280.0050.00619.31
7.1.270.0060.00719.40
7.1.260.0050.00919.43
7.1.250.0080.00619.60
7.1.240.0070.01119.25
7.1.230.0070.00719.51
7.1.220.0080.00819.55
7.1.210.0060.00919.32
7.1.200.0080.01019.56
7.1.190.0000.01819.42
7.1.180.0090.00319.45
7.1.170.0030.01019.53
7.1.160.0070.01019.51
7.1.150.0030.00819.57
7.1.140.0100.00019.45
7.1.130.0070.00719.54
7.1.120.0070.01019.51
7.1.110.0070.01019.55
7.1.100.0090.00720.61
7.1.90.0000.01219.46
7.1.80.0060.00819.51
7.1.70.0040.01320.20
7.1.60.0090.00920.21
7.1.50.0140.00320.02
7.1.40.0000.01319.49
7.1.30.0070.00719.62
7.1.20.0090.00619.59
7.1.10.0030.01419.35
7.1.00.0070.04422.58
7.0.330.0000.01118.93
7.0.320.0080.00818.89
7.0.310.0070.01119.14
7.0.300.0060.00819.20
7.0.290.0100.00319.25
7.0.280.0040.01119.10
7.0.270.0100.00318.98
7.0.260.0040.01118.97
7.0.250.0080.00419.00
7.0.240.0060.00319.20
7.0.230.0030.00919.23
7.0.220.0030.01219.23
7.0.210.0090.00618.96
7.0.200.0050.01119.82
7.0.190.0030.01019.29
7.0.180.0060.00618.87
7.0.170.0060.00919.19
7.0.160.0070.00719.17
7.0.150.0090.00319.07
7.0.140.0070.00319.10
7.0.130.0000.01318.93
7.0.120.0060.01019.02
7.0.110.0040.01119.13
7.0.100.0090.00319.04
7.0.90.0060.01018.90
7.0.80.0000.01819.09
7.0.70.0120.00018.80
7.0.60.0060.04622.22
7.0.50.0080.04518.50
7.0.40.0080.03820.30
7.0.30.0170.04520.15
7.0.20.0130.02620.08
7.0.10.0060.02520.26
7.0.00.0040.04820.27
5.6.400.0120.00318.07
5.6.390.0040.01117.79
5.6.380.0110.00417.92
5.6.370.0080.00418.10
5.6.360.0030.00818.01
5.6.350.0030.00717.70
5.6.340.0000.01418.15
5.6.330.0080.00418.05
5.6.320.0040.01218.07
5.6.310.0030.00617.55
5.6.300.0100.00717.78
5.6.290.0070.00717.89
5.6.280.0020.02621.09
5.6.270.0040.01518.11
5.6.260.0030.01017.75
5.6.250.0030.01317.86
5.6.240.0090.00617.93
5.6.230.0110.00418.01
5.6.220.0040.00817.84
5.6.210.0020.05120.98
5.6.200.0050.04818.12
5.6.190.0100.04020.69
5.6.180.0210.04120.82
5.6.170.0180.04420.84
5.6.160.0060.02120.59
5.6.150.0020.04817.99
5.6.140.0100.03518.09
5.6.130.0080.04018.02
5.6.120.0050.02621.13
5.6.110.0090.04221.24
5.6.100.0060.04721.13
5.6.90.0100.04421.14
5.6.80.0050.04420.82
5.6.70.0030.00917.77
5.6.60.0100.00717.63
5.6.50.0000.01417.92
5.6.40.0070.00417.86
5.6.30.0030.01417.54
5.6.20.0000.01117.67
5.6.10.0070.01117.78
5.6.00.0060.01017.73
5.5.380.0110.00318.14
5.5.370.0030.01318.08
5.5.360.0090.00617.75
5.5.350.0080.04620.98
5.5.340.0030.04817.90
5.5.330.0050.03720.88
5.5.320.0190.02920.66
5.5.310.0190.03920.45
5.5.300.0070.02517.92
5.5.290.0030.04618.06
5.5.280.0050.03721.28
5.5.270.0100.02220.83
5.5.260.0090.04121.29
5.5.250.0030.02521.03
5.5.240.0090.04520.78
5.5.230.0000.01317.66
5.5.220.0070.00717.96
5.5.210.0070.00717.82
5.5.200.0000.01417.91
5.5.190.0070.01117.24
5.5.180.0100.00617.60
5.5.170.0070.01117.91
5.5.160.0040.01517.80
5.5.150.0000.01717.38
5.5.140.0030.00717.34
5.5.130.0000.01417.82
5.5.120.0070.00417.80
5.5.110.0070.01117.43
5.5.100.0040.01417.89
5.5.90.0030.01317.91
5.5.80.0030.01017.85
5.5.70.0090.00617.80
5.5.60.0090.00917.70
5.5.50.0040.01517.89
5.5.40.0030.01617.98
5.5.30.0060.01017.51
5.5.20.0100.00318.07
5.5.10.0100.00717.77
5.5.00.0060.00917.45

preferences:
51.05 ms | 401 KiB | 5 Q