3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '11pm-3am'; list($begin, $end) = explode('-', $str); $begin = new DateTime($begin); $end = new DateTime($end); $end = $end->modify('+1 day'); $end = $end->modify('+1 hour'); $interval = new DateInterval('PT1H'); $daterange = new DatePeriod($begin, $interval, $end); $result = array_map(fn($d) => $d->format('ga'), iterator_to_array($daterange)); print_r($result);

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.4.130.0090.01217.49
8.4.120.0150.00720.37
8.4.110.0090.01221.79
8.4.100.0120.00819.16
8.4.90.0120.00820.70
8.4.80.0100.01019.04
8.4.70.0090.01217.91
8.4.60.0120.00818.86
8.4.50.0050.00420.48
8.4.40.0000.00918.11
8.4.30.0030.00620.72
8.4.20.0100.01017.95
8.4.10.0130.00717.88
8.3.260.0130.00616.84
8.3.250.0100.00817.14
8.3.240.0070.00216.77
8.3.230.0120.00616.60
8.3.220.0030.00619.00
8.3.210.0100.01016.64
8.3.200.0080.00216.80
8.3.190.0110.00817.22
8.3.180.0120.00618.56
8.3.170.0050.00317.48
8.3.160.0070.00020.42
8.3.150.0180.00016.73
8.3.140.0050.00317.34
8.3.130.0030.00618.34
8.3.120.0060.00319.01
8.3.110.0130.00320.94
8.3.100.0000.00824.06
8.3.90.0150.00026.77
8.3.80.0000.01016.63
8.3.70.0140.00416.88
8.3.60.0120.00916.50
8.3.50.0040.01120.19
8.3.40.0090.00618.70
8.3.30.0090.01518.91
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.290.0100.00920.45
8.2.280.0050.00318.33
8.2.270.0110.00017.55
8.2.260.0060.00318.37
8.2.250.0110.00418.52
8.2.240.0040.00419.09
8.2.230.0050.00322.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0060.00316.88
8.2.190.0120.00616.63
8.2.180.0040.01425.92
8.2.170.0090.00919.26
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00421.18
8.2.110.0000.01019.38
8.2.100.0060.00618.09
8.2.90.0040.00417.97
8.2.80.0040.00819.23
8.2.70.0050.00418.05
8.2.60.0030.00518.22
8.2.50.0030.00818.10
8.2.40.0000.00820.07
8.2.30.0040.00418.26
8.2.20.0040.00420.58
8.2.10.0000.00818.10
8.2.00.0000.01019.38
8.1.330.0110.00816.66
8.1.320.0120.00816.19
8.1.310.0080.00018.45
8.1.300.0090.00017.93
8.1.290.0060.00618.88
8.1.280.0000.01425.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.27
8.1.230.0060.00621.02
8.1.220.0040.00417.91
8.1.210.0080.00018.97
8.1.200.0060.00317.73
8.1.190.0040.00417.48
8.1.180.0030.00519.10
8.1.170.0040.00418.82
8.1.160.0040.00419.03
8.1.150.0050.00218.80
8.1.140.0040.00417.77
8.1.130.0030.00320.21
8.1.120.0040.00417.74
8.1.110.0000.00717.69
8.1.100.0050.00317.73
8.1.90.0000.00717.70
8.1.80.0080.00017.72
8.1.70.0050.00217.74
8.1.60.0060.00317.66
8.1.50.0020.00517.61
8.1.40.0080.00017.72
8.1.30.0050.00317.90
8.1.20.0000.00817.73
8.1.10.0060.00317.65
8.1.00.0000.00917.69
8.0.300.0070.00020.16
8.0.290.0000.00817.00
8.0.280.0030.00520.21
8.0.270.0030.00318.17
8.0.260.0030.00318.37
8.0.250.0040.00417.20
8.0.240.0000.00717.07
8.0.230.0030.00417.05
8.0.220.0020.00517.03
8.0.210.0060.00317.13
8.0.200.0040.00417.21
8.0.190.0040.00417.20
8.0.180.0070.00017.08
8.0.170.0060.00317.16
8.0.160.0000.00817.09
8.0.150.0030.00917.02
8.0.140.0130.00317.03
8.0.130.0140.00017.09
8.0.120.0040.00717.11
8.0.110.0040.00817.10
8.0.100.0060.00617.00
8.0.90.0060.00617.04
8.0.80.0070.00417.06
8.0.70.0070.00517.11
8.0.60.0070.00717.01
8.0.50.0040.00817.15
8.0.30.0180.00016.95
8.0.20.0140.00417.23
8.0.10.0080.00417.29
7.4.330.0050.00015.55
7.4.320.0000.00716.75
7.4.300.0060.00016.80
7.4.290.0080.00016.62
7.4.280.0000.00716.79
7.4.270.0130.00916.81
7.4.260.0160.00616.66
7.4.250.0210.00316.65
7.4.240.0200.00416.68
7.4.230.0180.00416.72
7.4.220.0150.00416.67
7.4.210.0190.00016.61
7.4.200.0180.00416.59
7.4.190.0240.00816.79
7.4.180.0060.01216.65
7.4.160.0140.00516.74
7.4.150.0130.00716.66
7.4.140.0180.00016.61
7.4.130.0140.00316.72
7.4.120.0160.00016.67
7.4.110.0080.00616.66
7.4.100.0120.00316.77
7.4.90.0090.00616.61
7.4.80.0120.00416.64
7.4.70.0140.00316.65
7.4.60.0120.00416.48
7.4.50.0100.00516.48
7.4.40.0100.00516.58
7.4.30.0130.00516.45
7.4.20.0060.01116.47
7.4.10.0080.00716.72
7.4.00.0120.00616.55

preferences:
29.65 ms | 403 KiB | 5 Q