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.0110.01922.93
8.3.50.0170.02020.64
8.3.40.0030.01621.17
8.3.30.0170.00021.26
8.3.20.0030.00622.86
8.3.10.0040.00424.38
8.3.00.0040.00426.34
8.2.180.0130.01621.13
8.2.170.0100.01022.96
8.2.160.0080.00822.97
8.2.150.0030.00624.18
8.2.140.0060.00324.66
8.2.130.0090.00023.20
8.2.120.0000.00826.35
8.2.110.0070.00324.76
8.2.100.0060.00621.43
8.2.90.0100.00021.60
8.2.80.0060.00321.54
8.2.70.0110.00321.00
8.2.60.0040.01121.28
8.2.50.0070.00321.00
8.2.40.0090.00025.09
8.2.30.0000.00922.07
8.2.20.0030.00821.04
8.2.10.0130.00221.56
8.2.00.0000.00921.49
8.1.280.0300.02625.92
8.1.270.0070.01426.45
8.1.260.0030.00628.09
8.1.250.0060.00328.09
8.1.240.0090.00024.85
8.1.230.0070.00722.66
8.1.220.0090.00021.04
8.1.210.0040.00420.86
8.1.200.0040.00720.38
8.1.190.0070.00320.60
8.1.180.0170.00320.55
8.1.170.0030.00622.01
8.1.160.0100.00323.23
8.1.150.0050.00321.43
8.1.140.0100.00722.86
8.1.130.0030.00520.98
8.1.120.0030.00620.75
8.1.110.0080.00821.12
8.1.100.0000.01020.73
8.1.90.0040.00421.11
8.1.80.0000.01421.14
8.1.70.0040.00421.02
8.1.60.0030.00621.24
8.1.50.0060.00321.09
8.1.40.0040.00421.18
8.1.30.0050.00521.43
8.1.20.0030.00521.22
8.1.10.0060.00321.15
8.1.00.0060.00321.04
8.0.300.0000.00820.16
8.0.290.0050.00520.13
8.0.280.0000.00821.05
8.0.270.0050.00320.77
8.0.260.0090.00020.61
8.0.250.0030.00620.53
8.0.240.0070.00520.53
8.0.230.0050.00520.63
8.0.220.0060.00320.45
8.0.210.0080.00020.53
8.0.200.0060.00320.48
8.0.190.0300.00620.45
8.0.180.0040.00920.28
8.0.170.0220.00320.44
8.0.160.0040.00420.32
8.0.150.0030.00620.14
8.0.140.0000.00920.20
8.0.130.0000.00613.38
8.0.120.0000.01020.46
8.0.110.0040.00420.29
8.0.100.0000.00820.79
8.0.90.0080.00020.50
8.0.80.0140.00420.68
8.0.70.0030.00720.31
8.0.60.0090.00020.58
8.0.50.0060.00320.75
8.0.30.0120.00720.65
8.0.20.0170.00620.84
8.0.10.0040.00420.29
8.0.00.0140.01320.42
7.4.330.0000.00516.77
7.4.320.0030.00320.11
7.4.300.0030.00520.10
7.4.290.0070.00319.87
7.4.280.0030.00720.24
7.4.270.0070.00020.17
7.4.260.0080.00320.00
7.4.250.0060.00320.10
7.4.240.0010.00720.21
7.4.230.0030.00520.25
7.4.220.0160.00620.29
7.4.210.0070.01420.19
7.4.200.0060.00320.14
7.4.160.0150.00420.23
7.4.150.0100.01020.13
7.4.140.0100.01220.18
7.4.130.0210.00920.13
7.4.120.0080.01120.09
7.4.110.0110.01120.18
7.4.100.0090.01920.21
7.4.90.0090.01219.97
7.4.80.0110.00820.11
7.4.70.0130.00620.25
7.4.60.0060.01220.01
7.4.50.0030.01519.85
7.4.40.0170.00920.16
7.4.30.0030.01620.04
7.4.10.0110.01519.88
7.4.00.0090.01019.25
7.3.330.0030.00313.13
7.3.320.0030.00313.21
7.3.310.0080.00019.93
7.3.300.0090.00019.93
7.3.290.0050.00420.07
7.3.280.0200.00820.02
7.3.270.0120.00919.73
7.3.260.0130.01019.89
7.3.250.0130.01120.09
7.3.240.0070.01520.21
7.3.230.0090.01519.95
7.3.210.0260.01019.98
7.3.200.0130.01719.93
7.3.190.0090.01220.31
7.3.180.0140.00820.29
7.3.170.0120.00920.45
7.3.160.0060.01319.93
7.3.130.0180.00719.99
7.3.120.0100.01320.25
7.3.110.0100.00720.29
7.3.100.0120.00620.23
7.3.90.0090.01220.09
7.3.80.0040.00720.02
7.3.70.0080.01119.92
7.3.60.0070.01119.97
7.3.50.0030.00819.73
7.3.40.0000.01320.00
7.3.30.0060.01019.78
7.3.20.0080.00321.70
7.3.10.0030.00721.49
7.3.00.0100.01021.67
7.2.330.0180.00619.95
7.2.320.0090.01620.37
7.2.310.0130.01320.04
7.2.300.0210.01320.15
7.2.290.0100.01320.20
7.2.260.0170.00719.79
7.2.250.0100.01620.22
7.2.240.0120.00920.02
7.2.230.0090.00920.02
7.2.220.0040.01720.05
7.2.210.0080.00320.06
7.2.200.0070.00720.05
7.2.190.0060.00620.03
7.2.180.0030.01320.05
7.2.170.0080.00619.87
7.2.160.0040.00719.97
7.2.150.0110.00021.81
7.2.140.0000.01321.61
7.2.130.0070.01322.06
7.2.120.0060.00621.69
7.2.110.0040.01121.80
7.2.100.0040.01122.00
7.2.90.0040.01121.87
7.2.80.0070.01022.07
7.2.70.0090.00321.56
7.2.60.0130.01021.21
7.2.50.0040.01421.77
7.2.40.0000.01521.53
7.2.30.0000.01122.10
7.2.20.0080.00821.72
7.2.10.0040.00721.72
7.2.00.0120.00722.50
7.1.330.0120.00320.77
7.1.320.0070.01320.73
7.1.310.0070.00720.67
7.1.300.0030.01220.98
7.1.290.0070.00720.96
7.1.280.0070.00720.83
7.1.270.0080.00320.85
7.1.260.0090.00920.63
7.1.250.0070.00320.92
7.1.240.0040.00720.78
7.1.230.0100.00620.94
7.1.220.0110.00420.89
7.1.210.0000.01120.69
7.1.200.0050.00920.03
7.1.190.0090.00620.78
7.1.180.0090.00920.86
7.1.170.0060.00620.81
7.1.160.0060.00920.86
7.1.150.0030.00920.74
7.1.140.0070.00720.91
7.1.130.0070.01020.94
7.1.120.0090.00920.88
7.1.110.0040.01520.81
7.1.100.0060.00921.13
7.1.90.0030.01320.79
7.1.80.0060.00920.69
7.1.70.0110.00920.90
7.1.60.0090.01220.90
7.1.50.0040.01420.60
7.1.40.0070.00421.02
7.1.30.0000.01420.84
7.1.20.0040.00720.88
7.1.10.0030.01220.85
7.1.00.0030.04623.47
7.0.330.0070.00320.62
7.0.320.0090.00620.66
7.0.310.0070.01120.54
7.0.300.0070.00720.50
7.0.290.0060.01020.59
7.0.280.0060.00920.52
7.0.270.0060.01020.54
7.0.260.0090.00320.64
7.0.250.0030.01020.54
7.0.240.0000.01020.63
7.0.230.0060.00820.54
7.0.220.0060.00620.54
7.0.210.0030.01320.46
7.0.200.0080.00620.65
7.0.190.0030.00720.59
7.0.180.0040.00720.57
7.0.170.0060.00620.51
7.0.160.0100.00720.71
7.0.150.0040.01520.68
7.0.140.0070.01120.63
7.0.130.0060.00620.61
7.0.120.0110.00720.64
7.0.110.0000.01820.59
7.0.100.0030.01020.55
7.0.90.0030.01020.55
7.0.80.0070.01020.50
7.0.70.0100.00320.48
7.0.60.0110.03723.00
7.0.50.0050.04719.08
7.0.40.0110.03720.93
7.0.30.0170.03021.03
7.0.20.0150.03220.75
7.0.10.0060.03121.12
7.0.00.0120.04521.08
5.6.400.0000.01519.69
5.6.390.0070.01019.46
5.6.380.0040.00719.33
5.6.370.0000.01119.52
5.6.360.0060.01019.29
5.6.350.0040.01219.57
5.6.340.0070.01019.52
5.6.330.0000.01119.34
5.6.320.0070.00719.19
5.6.310.0080.00419.53
5.6.300.0040.01119.23
5.6.290.0070.01119.30
5.6.280.0090.02221.90
5.6.270.0040.00819.60
5.6.260.0000.01319.39
5.6.250.0030.01019.55
5.6.240.0030.01019.01
5.6.230.0070.01019.21
5.6.220.0070.01119.23
5.6.210.0030.04921.57
5.6.200.0050.02618.81
5.6.190.0130.04021.65
5.6.180.0250.04221.45
5.6.170.0170.04421.63
5.6.160.0100.04721.42
5.6.150.0020.02618.71
5.6.140.0070.04018.84
5.6.130.0060.04518.82
5.6.120.0050.04722.10
5.6.110.0020.03422.01
5.6.100.0090.04422.11
5.6.90.0050.03222.00
5.6.80.0080.04721.69
5.6.70.0000.01019.19
5.6.60.0030.01219.24
5.6.50.0060.00319.42
5.6.40.0030.01219.18
5.6.30.0030.01019.45
5.6.20.0100.00319.39
5.6.10.0060.00819.52
5.6.00.0060.00719.30
5.5.380.0040.01119.00
5.5.370.0060.00619.38
5.5.360.0040.01119.36
5.5.350.0090.04421.65
5.5.340.0050.02518.63
5.5.330.0060.02621.38
5.5.320.0200.04121.53
5.5.310.0130.02621.49
5.5.300.0020.04718.80
5.5.290.0070.02718.52
5.5.280.0050.02821.67
5.5.270.0100.04121.89
5.5.260.0020.04121.77
5.5.250.0030.04621.61
5.5.240.0200.03321.58
5.5.230.0120.00319.19
5.5.220.0060.00619.02
5.5.210.0090.00619.29
5.5.200.0080.00819.30
5.5.190.0000.01519.17
5.5.180.0110.00319.33
5.5.170.0040.00819.45
5.5.160.0030.00719.38
5.5.150.0040.01119.27
5.5.140.0040.01519.19
5.5.130.0030.01319.54
5.5.120.0040.00719.26
5.5.110.0040.00719.06
5.5.100.0100.00319.21
5.5.90.0090.00619.30
5.5.80.0090.00919.05
5.5.70.0060.01219.25
5.5.60.0090.00619.11
5.5.50.0060.01019.34
5.5.40.0060.00919.36
5.5.30.0120.00619.31
5.5.20.0130.00319.21
5.5.10.0040.00819.32
5.5.00.0040.01119.15

preferences:
53.98 ms | 401 KiB | 5 Q