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); var_dump($res); 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.0130.02022.25
8.3.50.0190.01623.14
8.3.40.0120.00420.84
8.3.30.0090.00620.84
8.3.20.0060.00322.54
8.3.10.0040.00423.98
8.3.00.0030.00622.80
8.2.180.0160.01325.92
8.2.170.0100.00721.16
8.2.160.0140.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0090.00026.16
8.2.120.0090.00420.50
8.2.110.0110.00022.32
8.2.100.0060.00620.63
8.2.90.0050.00321.45
8.2.80.0090.00020.50
8.2.70.0000.00920.63
8.2.60.0020.00920.68
8.2.50.0060.00320.34
8.2.40.0030.00724.11
8.2.30.0000.00820.90
8.2.20.0040.00420.64
8.2.10.0040.00421.14
8.2.00.0000.00921.04
8.1.280.0330.01725.92
8.1.270.0030.00622.49
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0070.00324.28
8.1.230.0100.00320.36
8.1.220.0030.00620.79
8.1.210.0040.00420.23
8.1.200.0030.00620.10
8.1.190.0060.00320.10
8.1.180.0000.00820.41
8.1.170.0040.00821.26
8.1.160.0000.00925.82
8.1.150.0030.00620.91
8.1.140.0060.00320.35
8.1.130.0030.00520.63
8.1.120.0030.00520.38
8.1.110.0060.00320.53
8.1.100.0060.00320.28
8.1.90.0060.00320.61
8.1.80.0060.00320.50
8.1.70.0060.00320.58
8.1.60.0050.00520.54
8.1.50.0030.00620.62
8.1.40.0060.00320.66
8.1.30.0040.00420.96
8.1.20.0040.00420.98
8.1.10.0000.00820.59
8.1.00.0030.00620.68
8.0.300.0000.00919.79
8.0.290.0030.00519.63
8.0.280.0030.00520.66
8.0.270.0030.00619.71
8.0.260.0050.00220.19
8.0.250.0000.00820.09
8.0.240.0000.00820.19
8.0.230.0060.00320.02
8.0.220.0040.00419.94
8.0.210.0050.00320.07
8.0.200.0000.00719.97
8.0.190.0060.00320.09
8.0.180.0000.00919.91
8.0.170.0030.00619.85
8.0.160.0060.00319.79
8.0.150.0000.00819.76
8.0.140.0040.00419.78
8.0.130.0000.00513.27
8.0.120.0030.00620.01
8.0.110.0090.00019.96
8.0.100.0000.00819.88
8.0.90.0030.00620.14
8.0.80.0120.00620.26
8.0.70.0060.00320.18
8.0.60.0080.00020.09
8.0.50.0050.00320.11
8.0.30.0170.00620.02
8.0.20.0160.00920.29
8.0.10.0000.00820.30
8.0.00.0080.01419.97
7.4.330.0050.00015.08
7.4.320.0040.00419.88
7.4.300.0030.00319.73
7.4.290.0070.00019.79
7.4.280.0000.00919.69
7.4.270.0000.00719.82
7.4.260.0030.00619.79
7.4.250.0040.00419.55
7.4.240.0050.00319.68
7.4.230.0030.00519.61
7.4.220.0110.01219.65
7.4.210.0070.01019.62
7.4.200.0080.00019.50
7.4.160.0160.01019.68
7.4.150.0140.00719.58
7.4.140.0140.01119.61
7.4.130.0080.01519.52
7.4.120.0070.01219.58
7.4.110.0090.00919.64
7.4.100.0070.01319.75
7.4.90.0090.01019.59
7.4.80.0160.00719.67
7.4.70.0180.01019.73
7.4.60.0040.01419.65
7.4.50.0060.00319.80
7.4.40.0140.00619.59
7.4.30.0070.01119.65
7.4.00.0100.00718.10
7.3.330.0030.00312.99
7.3.320.0000.00513.13
7.3.310.0050.00219.17
7.3.300.0020.00519.59
7.3.290.0130.00719.57
7.3.280.0100.00819.49
7.3.270.0060.01219.36
7.3.260.0040.01519.34
7.3.250.0110.01019.75
7.3.240.0100.01019.74
7.3.230.0190.00319.20
7.3.210.0100.00719.64
7.3.200.0090.00919.74
7.3.190.0150.00419.69
7.3.180.0030.01619.43
7.3.170.0120.00619.75
7.3.160.0100.01019.74
7.2.330.0060.01319.73
7.2.320.0120.00919.41
7.2.310.0110.00719.43
7.2.300.0060.01219.77
7.2.290.0060.01219.62
7.2.60.0210.00519.54
7.1.200.0170.00019.00
7.1.70.0030.01020.49
7.1.60.0100.01720.80
7.1.50.0100.01420.57
7.1.00.0070.07725.88
7.0.200.0150.00620.04
7.0.60.0100.08023.14
7.0.50.0070.03717.79
7.0.40.0000.05023.02
7.0.30.0500.07022.96
7.0.20.0200.04323.10
7.0.10.0100.05023.11
7.0.00.0070.07323.01
5.6.280.0030.05724.20
5.6.210.0070.07723.79
5.6.200.0070.08318.19
5.6.190.0070.06323.47
5.6.180.3600.05023.22
5.6.170.0270.08323.36
5.6.160.0070.06323.33
5.6.150.0130.07718.11
5.6.140.0070.08718.09
5.6.130.0000.07318.12
5.6.120.0070.07724.20
5.6.110.0130.06024.27
5.6.100.0070.08724.10
5.6.90.0170.07724.18
5.6.80.0130.07323.41
5.6.70.4500.03723.58
5.5.350.0330.06323.73
5.5.340.0130.07718.02
5.5.330.0100.08323.33
5.5.320.0270.07323.29
5.5.310.0200.04323.18
5.5.300.0030.05317.91
5.5.290.0030.04017.92
5.5.280.0030.08323.95
5.5.270.0070.07323.87
5.5.260.0170.03023.90
5.5.250.0070.08023.59
5.5.240.0330.07023.26
5.4.450.0630.06022.11
5.4.440.0530.05322.36
5.4.430.0500.05322.21
5.4.420.0670.05022.35
5.4.410.0670.05722.07
5.4.400.0570.06322.04
5.4.390.0430.06321.77
5.4.380.0470.05021.88
5.4.370.0670.04721.77
5.4.360.0570.05722.00
5.4.350.0500.06321.89
5.4.340.0600.06321.86
5.4.320.0630.05722.03
5.4.310.0630.09321.88
5.4.300.0630.05721.76
5.4.290.0700.05021.76
5.4.280.0670.05721.90
5.4.270.0600.05721.92
5.4.260.0530.06021.77
5.4.250.0630.07721.87
5.4.240.0700.07021.87
5.4.230.0630.05021.83
5.4.220.0570.07021.91
5.4.210.0430.06721.89
5.4.200.0570.05719.26
5.4.190.0700.05021.65
5.4.180.0730.05021.84
5.4.170.0730.06721.86
5.4.160.0600.05721.85
5.4.150.0600.07721.67
5.4.140.0470.06319.34
5.4.130.0570.05318.89
5.4.120.0500.05019.33
5.4.110.0600.05018.99
5.4.100.0700.04318.97
5.4.90.0430.06319.30
5.4.80.0530.05018.93
5.4.70.0500.05719.28
5.4.60.0530.05319.02
5.4.50.0700.05318.85
5.4.40.0530.07319.27
5.4.30.0770.05018.84
5.4.20.0630.05719.11
5.4.10.0700.05319.27
5.4.00.0570.06718.47

preferences:
38.66 ms | 401 KiB | 5 Q