3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = new DateTime('1900-01-01'); $end = new DateTime('2100-01-01'); $interval = DateInterval::createFromDateString('1 day'); $period = new DatePeriod($begin, $interval, $end); $intlDateFormatter = new IntlDateFormatter("en_US", IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE, "Europe/Malta", 1, "dd/MM/yyyy"); $intlDateFormatter->setLenient(false); foreach ($period as $dt) { $formattedDate = $dt->format("d/m/Y"); $timestamp = $intlDateFormatter->parse($formattedDate); if (intl_get_error_code() != 0) { echo $formattedDate."\n"; echo intl_get_error_message()."\n"; } }

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.47720.88
8.3.50.0130.45922.20
8.3.40.0170.60421.24
8.3.30.0100.63921.23
8.3.20.0070.32721.40
8.3.10.0130.34124.15
8.3.00.0000.33923.95
8.2.180.0130.49520.35
8.2.170.0070.62722.96
8.2.160.0030.61422.73
8.2.150.0030.32525.66
8.2.140.0030.32624.66
8.2.130.0100.35222.89
8.2.120.0100.32226.35
8.2.110.0030.34822.19
8.2.100.0170.58921.16
8.2.90.0030.60021.16
8.2.80.0070.64621.03
8.2.70.0100.57921.29
8.2.60.0030.59021.16
8.2.50.0070.58620.88
8.2.40.0070.55222.98
8.2.30.0030.55421.64
8.2.20.0030.58821.20
8.2.10.0100.58321.16
8.2.00.0030.58920.84
8.1.280.0170.49025.92
8.1.270.0030.34324.39
8.1.260.0170.33128.09
8.1.250.0030.32928.09
8.1.240.0030.34426.11
8.1.230.0070.58023.97
8.1.220.0070.58920.53
8.1.210.0100.56922.09
8.1.200.0070.58520.60
8.1.190.0070.58520.48
8.1.180.0100.58520.65
8.1.170.0030.57821.95
8.1.160.0030.53621.41
8.1.150.0070.59822.59
8.1.140.0070.57222.77
8.1.130.0000.58020.81
8.1.120.0000.58920.85
8.1.110.0000.58420.70
8.1.100.0000.58320.90
8.1.90.0030.58320.71
8.1.80.0000.58320.62
8.1.70.0030.58220.81
8.1.60.0030.58220.92
8.1.50.0100.57720.68
8.1.40.0070.57320.62
8.1.30.0030.57920.74
8.1.20.0030.58020.70
8.1.10.0030.58820.77
8.1.00.0060.61520.86
8.0.300.0100.54022.36
8.0.290.0030.59419.88
8.0.280.0070.54820.83
8.0.270.0070.62420.41
8.0.260.0070.58320.48
8.0.250.0070.59220.47
8.0.240.0030.60020.46
8.0.230.0000.59620.44
8.0.220.0030.61120.42
8.0.210.0030.59520.36
8.0.200.0000.59520.41
8.0.190.0100.69120.29
8.0.180.0030.60820.24
8.0.170.0000.60620.23
8.0.160.0130.69820.16
8.0.150.0000.59320.31
8.0.140.0070.59020.22
8.0.130.0060.00313.52
8.0.120.0100.30216.86
8.0.110.0140.30416.94
8.0.100.0090.29616.94
8.0.90.0140.29317.01
8.0.80.0160.71516.96
8.0.70.0090.30216.80
8.0.60.0100.30417.01
8.0.50.0090.30316.96
8.0.30.0110.45318.26
8.0.20.0180.96718.89
8.0.10.0130.29917.03
8.0.00.0150.75716.88
7.4.330.0030.00315.55
7.4.320.0030.59920.09
7.4.300.0070.58920.04
7.4.290.0000.60020.15
7.4.280.0100.63520.05
7.4.270.0000.60220.14
7.4.260.0170.00313.40
7.4.250.0150.30116.69
7.4.240.0110.29616.73
7.4.230.0150.29616.82
7.4.220.0170.83016.78
7.4.210.0140.66216.70
7.4.200.0090.30016.65
7.4.190.0110.00813.49
7.4.180.0160.00413.45
7.4.160.0200.80417.82
7.4.150.0160.75316.67
7.4.140.0141.06818.30
7.4.130.0151.22518.40
7.4.120.0151.01318.38
7.4.110.0110.66016.57
7.4.100.0170.69516.74
7.4.90.0101.03116.66
7.4.80.0090.80616.60
7.4.70.0140.63916.63
7.4.60.0160.62616.63
7.4.50.0100.39616.64
7.4.40.0121.05516.69
7.4.30.0130.68416.73
7.4.20.0130.00613.22
7.4.10.0110.00613.32
7.4.00.0060.31615.90
7.3.330.0070.00113.36
7.3.320.0080.00213.20
7.3.310.0070.30016.46
7.3.300.0080.30416.49
7.3.290.0140.98718.17
7.3.280.0321.33318.11
7.3.270.0110.68916.63
7.3.260.0111.07317.67
7.3.250.0110.98618.31
7.3.240.0161.19817.74
7.3.230.0180.87116.52
7.3.220.0090.00813.26
7.3.210.0160.65616.49
7.3.200.0191.22516.51
7.3.190.0110.66616.61
7.3.180.0100.67016.57
7.3.170.0110.70816.58
7.3.160.0120.66916.40
7.3.150.0130.00313.32
7.3.140.0150.00313.30
7.3.130.0170.00013.14
7.3.120.0110.00613.31
7.3.110.0120.00413.07
7.3.100.0160.00013.08
7.3.90.0090.00813.32
7.3.80.0140.00313.09
7.3.70.0110.00513.21
7.3.60.0180.00013.35
7.3.50.0140.00213.25
7.3.40.0080.00813.37
7.3.30.0180.00013.26
7.3.20.0180.00015.05
7.3.10.0140.38917.44
7.3.00.0110.32617.24
7.2.340.0120.00513.20
7.2.330.0150.66616.65
7.2.320.0100.81216.73
7.2.310.0140.63816.55
7.2.300.0140.68116.63
7.2.290.0160.63516.60
7.2.280.0160.00013.19
7.2.270.0140.00213.24
7.2.260.0100.00613.38
7.2.250.0160.00013.38
7.2.240.0120.00413.29
7.2.230.0100.00513.37
7.2.220.0080.00813.29
7.2.210.0120.00313.33
7.2.200.0160.00313.43
7.2.190.0190.00213.52
7.2.180.0160.00013.43
7.2.170.0160.00013.48
7.2.160.0080.00813.49
7.2.150.0160.00015.18
7.2.140.0130.00315.16
7.2.130.0120.35217.88
7.2.120.0120.39517.78
7.2.110.0080.33317.86
7.2.100.0060.32617.81
7.2.90.0120.33117.72
7.2.80.0100.33817.66
7.2.70.0120.32717.79
7.2.60.0100.31817.79
7.2.50.0110.32617.85
7.2.40.0090.31517.84
7.2.30.0100.32117.79
7.2.20.0070.31717.88
7.2.10.0070.34417.91
7.2.00.0090.35417.87
7.1.330.0200.00014.26
7.1.320.0110.00714.16
7.1.310.0000.01514.17
7.1.300.0120.00314.28
7.1.290.0100.00514.29
7.1.280.0140.00514.29
7.1.270.0140.00014.27
7.1.260.0110.00414.18
7.1.250.0070.34216.65
7.1.240.0120.00314.16
7.1.230.0090.00614.16
7.1.220.0160.00014.26
7.1.210.0130.00314.41
7.1.200.0160.00014.29
7.1.190.0160.00014.16
7.1.180.0100.00514.30
7.1.170.0110.00614.12
7.1.160.0080.00814.16
7.1.150.0150.00314.25
7.1.140.0100.00614.15
7.1.130.0170.00014.23
7.1.120.0170.00014.11
7.1.110.0170.00014.31
7.1.100.0170.00014.08
7.1.90.0140.00414.30
7.1.80.0150.00214.36
7.1.70.0140.00214.03
7.1.60.0120.00414.30
7.1.50.0130.00414.28
7.1.40.0080.00814.38
7.1.30.0100.00714.34
7.1.20.0170.00014.21
7.1.10.0120.00414.26
7.1.00.0130.00514.25
7.0.330.0160.00014.11
7.0.320.0100.00414.01
7.0.310.0130.00514.09
7.0.300.0170.00014.06
7.0.290.0080.00814.14
7.0.280.0090.00613.96
7.0.270.0100.00613.96
7.0.260.0110.00414.14
7.0.250.0110.00714.16
7.0.240.0150.00014.45
7.0.230.0110.00514.36
7.0.220.0080.00814.15
7.0.210.0120.00314.33
7.0.200.0120.00314.30
7.0.190.0160.00014.32
7.0.180.0120.00414.14
7.0.170.0100.00714.32
7.0.160.0160.00014.16
7.0.150.0120.00414.17
7.0.140.0160.00014.15
7.0.130.0550.51715.46
7.0.120.0330.45315.45
7.0.110.0190.48115.29
7.0.100.0320.49215.41
7.0.90.0290.46515.32
7.0.80.0500.45115.23
7.0.70.0550.39715.40
7.0.60.0430.38015.43
7.0.50.0510.38615.31
7.0.40.0510.38815.36
7.0.30.0620.39515.48
7.0.20.0480.42915.26
7.0.10.0540.36915.32
7.0.00.0410.35615.33
5.6.400.0120.00212.75
5.6.390.0150.00012.73
5.6.380.0150.00012.86
5.6.370.0150.00012.73
5.6.360.0110.00412.66
5.6.350.0140.00012.71
5.6.340.0130.00312.82
5.6.330.0090.00512.92
5.6.320.0150.00012.56
5.6.310.0140.00012.75
5.6.300.0110.00412.68
5.6.290.0110.00312.59
5.6.280.0160.66715.24
5.6.270.0080.52114.95
5.6.260.0100.46515.21
5.6.250.0120.48115.01
5.6.240.0110.43615.10
5.6.230.0110.47514.99
5.6.220.0090.46915.08
5.6.210.0100.49915.07
5.6.200.0090.46715.00
5.6.190.0110.51314.98
5.6.180.0110.42315.05
5.6.170.0140.44015.02
5.6.160.0150.44315.02
5.6.150.0090.45314.96
5.6.140.0090.48915.08
5.6.130.0090.47215.01
5.6.120.0050.52515.09
5.6.110.0140.42515.00
5.6.100.0080.51614.98
5.6.90.0120.43514.75
5.6.80.0120.47814.98
5.6.70.0120.45915.21
5.6.60.0120.58915.02
5.6.50.0130.56615.08
5.6.40.0160.56014.95
5.6.30.0100.54814.89
5.6.20.0070.45515.00
5.6.10.0120.51215.02
5.6.00.0100.43314.79

preferences:
50.61 ms | 401 KiB | 5 Q