3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intlDateFormatter = new IntlDateFormatter( 'en_US', 2, -1, 'Asia/Nicosia', 1, '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'; $res = $intlDateFormatter->parse($date, $pos); var_dump($res); var_dump($pos); 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.30
8.3.50.0150.02723.20
8.3.40.0160.00020.69
8.3.30.0090.00920.92
8.3.20.0090.00622.41
8.3.10.0050.00323.81
8.3.00.0090.00022.42
8.2.180.0040.03220.50
8.2.170.0100.00622.96
8.2.160.0090.00922.47
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0070.00326.16
8.2.120.0070.00420.50
8.2.110.0030.00622.72
8.2.100.0030.01020.75
8.2.90.0060.00321.46
8.2.80.0030.00620.63
8.2.70.0030.00620.63
8.2.60.0030.00720.65
8.2.50.0070.00320.50
8.2.40.0000.01223.88
8.2.30.0000.00921.04
8.2.20.0030.00620.64
8.2.10.0000.00821.13
8.2.00.0030.00621.03
8.1.280.0140.02125.92
8.1.270.0030.00626.17
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00624.31
8.1.230.0040.00920.78
8.1.220.0000.00820.79
8.1.210.0030.00620.23
8.1.200.0100.00319.98
8.1.190.0030.00620.10
8.1.180.0060.00320.43
8.1.170.0070.00321.39
8.1.160.0000.00825.97
8.1.150.0000.00820.96
8.1.140.0070.00320.40
8.1.130.0000.00820.52
8.1.120.0030.00620.39
8.1.110.0040.00420.58
8.1.100.0030.00520.34
8.1.90.0030.00520.46
8.1.80.0000.00920.46
8.1.70.0080.00020.57
8.1.60.0000.00920.52
8.1.50.0030.00720.34
8.1.40.0040.00420.59
8.1.30.0040.00420.52
8.1.20.0000.00920.91
8.1.10.0000.00920.73
8.1.00.0030.00620.66
8.0.300.0030.00619.85
8.0.290.0080.00019.75
8.0.280.0040.00420.72
8.0.270.0040.00420.25
8.0.260.0000.00720.26
8.0.250.0090.00020.15
8.0.240.0040.00420.15
8.0.230.0060.00320.00
8.0.220.0000.00720.10
8.0.210.0000.00820.03
8.0.200.0000.00720.03
8.0.190.0040.00420.26
8.0.180.0080.00019.98
8.0.170.0060.00319.91
8.0.160.0090.00019.97
8.0.150.0000.00819.79
8.0.140.0040.00419.86
8.0.130.0000.00613.32
8.0.120.0040.00419.85
8.0.110.0080.00019.84
8.0.100.0030.00520.16
8.0.90.0000.00820.27
8.0.80.0120.00620.32
8.0.70.0080.00020.25
8.0.60.0030.00519.91
8.0.50.0000.00820.20
8.0.30.0100.01019.98
8.0.20.0150.01020.23
8.0.10.0050.00320.33
8.0.00.0100.00919.82
7.4.330.0050.00015.08
7.4.320.0030.00319.83
7.4.300.0070.00019.72
7.4.290.0050.00319.68
7.4.280.0070.00319.86
7.4.270.0040.00419.86
7.4.260.0040.00419.64
7.4.250.0000.00819.73
7.4.240.0060.00219.77
7.4.230.0050.00219.71
7.4.220.0080.01219.93
7.4.210.0090.00619.84
7.4.200.0080.00019.66
7.4.160.0070.01119.56
7.4.150.0100.01019.67
7.4.140.0080.01619.68
7.4.130.0110.01019.59
7.4.120.0080.01119.70
7.4.110.0150.00419.63
7.4.100.0130.00719.56
7.4.90.0120.00919.61
7.4.80.0100.01319.66
7.4.70.0090.01819.55
7.4.60.0100.00719.57
7.4.50.0090.00019.65
7.4.40.0030.01519.64
7.4.30.0140.00419.68
7.4.00.0070.01117.82
7.3.330.0050.00013.06
7.3.320.0000.00513.02
7.3.310.0050.00319.27
7.3.300.0060.00319.61
7.3.290.0110.00619.42
7.3.280.0090.01119.47
7.3.270.0060.01219.20
7.3.260.0030.01619.31
7.3.250.0100.01019.77
7.3.240.0120.00619.66
7.3.230.0160.00619.62
7.3.210.0140.00319.69
7.3.200.0040.01519.68
7.3.190.0120.00619.51
7.3.180.0030.01619.23
7.3.170.0090.00919.14
7.3.160.0150.00819.81
7.2.330.0100.01019.75
7.2.320.0100.01319.55
7.2.310.0120.01219.52
7.2.300.0040.01419.51
7.2.290.0060.01319.68
7.2.60.0130.00020.21
7.2.00.0040.01223.18
7.1.200.0160.00819.01
7.1.100.0000.01521.30
7.1.70.0070.00320.69
7.1.60.0060.01920.78
7.1.50.0130.00720.41
7.1.00.0000.08325.73
7.0.200.0110.00420.31
7.0.60.0070.07323.19
7.0.50.0030.08717.84
7.0.40.0000.07722.86
7.0.30.0370.08023.11
7.0.20.0300.06022.96
7.0.10.0130.07723.10
7.0.00.0100.07322.88
5.6.280.0030.06323.96
5.6.210.0030.04023.70
5.6.200.0100.07718.22
5.6.190.0130.07723.33
5.6.180.3430.04023.52
5.6.170.0270.03723.70
5.6.160.0000.08323.33
5.6.150.0030.05718.08
5.6.140.0070.08318.20
5.6.130.0070.08318.14
5.6.120.0030.04724.05
5.6.110.0070.08324.20
5.6.100.0070.08324.00
5.6.90.0000.09023.96
5.6.80.0100.05023.59
5.6.70.4470.04723.43
5.5.350.0270.07723.45
5.5.340.0030.05317.91
5.5.330.0070.07723.14
5.5.320.0170.04323.17
5.5.310.0270.08323.21
5.5.300.0100.07017.87
5.5.290.0070.05717.95
5.5.280.0100.08723.91
5.5.270.0030.04323.87
5.5.260.0030.04323.86
5.5.250.0200.05323.75
5.5.240.0270.07023.26
5.4.450.0500.06022.21
5.4.440.0600.06022.21
5.4.430.0530.05722.23
5.4.420.0570.05322.21
5.4.410.0570.06321.87
5.4.400.0570.05721.90
5.4.390.0530.07321.97
5.4.380.0700.05721.88
5.4.370.0430.06721.89
5.4.360.0570.06021.92
5.4.350.0730.06322.10
5.4.340.0800.06022.11
5.4.320.0570.08021.77
5.4.310.0500.05721.93
5.4.300.0570.05321.93
5.4.290.0570.04721.91
5.4.280.0600.06722.00
5.4.270.0670.06721.88
5.4.260.0670.07021.88
5.4.250.0570.07322.02
5.4.240.0700.06021.89
5.4.230.0600.05722.02
5.4.220.0670.06021.92
5.4.210.0670.05322.00
5.4.200.0570.05719.48
5.4.190.0530.05721.55
5.4.180.0700.06322.02
5.4.170.0700.05021.89
5.4.160.0470.06021.66
5.4.150.0530.05721.80
5.4.140.0700.05018.98
5.4.130.0770.04319.11
5.4.120.0700.05718.93
5.4.110.0870.06318.93
5.4.100.0570.06319.04
5.4.90.0630.05319.01
5.4.80.0670.06319.22
5.4.70.0530.06318.97
5.4.60.0730.04019.03
5.4.50.0530.04718.88
5.4.40.0530.05019.11
5.4.30.0600.04719.30
5.4.20.0630.05318.98
5.4.10.0600.05018.94
5.4.00.0700.06318.43

preferences:
50.55 ms | 401 KiB | 5 Q