3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'Saturday-Thursday'; list($begin, $end) = explode('-', $str); $begin = new DateTime($begin); $end = new DateTime($end); $end = $end->modify( '+1 day' ); $interval = new DateInterval('P1D'); $daterange = new DatePeriod($begin, $interval, $end); $result = array_map(fn($d) => $d->format('l'), 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.5.70.0100.00716.90
8.5.60.0100.00716.95
8.5.50.0120.00616.83
8.5.30.0080.01020.18
8.5.20.0140.00620.20
8.5.10.0120.00618.76
8.5.00.0170.00420.40
8.4.220.0070.00419.80
8.4.210.0120.01019.76
8.4.180.0080.00419.77
8.4.170.0150.00720.63
8.4.160.0110.01123.52
8.4.150.0080.00416.98
8.4.140.0130.00817.67
8.4.130.0050.00418.91
8.4.120.0070.00424.18
8.4.110.0150.00518.86
8.4.100.0060.00218.90
8.4.90.0120.01019.07
8.4.80.0100.00418.94
8.4.70.0110.00919.81
8.4.60.0130.00618.99
8.4.50.0120.00818.65
8.4.40.0150.00617.85
8.4.30.0060.00320.65
8.4.20.0080.01118.02
8.4.10.0070.01318.08
8.3.310.0090.00818.77
8.3.300.0160.00820.87
8.3.290.0130.00720.82
8.3.280.0100.01118.74
8.3.270.0100.01216.85
8.3.260.0110.00816.73
8.3.250.0100.00919.21
8.3.240.0050.00417.18
8.3.230.0140.00616.86
8.3.220.0020.00618.76
8.3.210.0100.00716.65
8.3.200.0040.00516.72
8.3.190.0050.00517.11
8.3.180.0130.00617.26
8.3.170.0040.01522.43
8.3.160.0090.00917.21
8.3.150.0040.01117.24
8.3.140.0120.00916.71
8.3.130.0060.00318.68
8.3.120.0060.00318.93
8.3.110.0040.00418.56
8.3.100.0100.00018.29
8.3.90.0060.00326.77
8.3.80.0000.01016.75
8.3.70.0070.01116.58
8.3.60.0080.01216.88
8.3.50.0150.00020.10
8.3.40.0070.00718.67
8.3.30.0060.00918.92
8.3.20.0000.00824.18
8.3.10.0030.00524.66
8.3.00.0030.00626.16
8.2.310.0140.00718.16
8.2.300.0130.00822.29
8.2.290.0130.00620.45
8.2.280.0040.00418.23
8.2.270.0110.00717.19
8.2.260.0000.00816.59
8.2.250.0060.00318.45
8.2.240.0060.00316.80
8.2.230.0030.00620.94
8.2.220.0130.00324.06
8.2.210.0040.00426.77
8.2.200.0090.00016.75
8.2.190.0070.01416.75
8.2.180.0110.00425.92
8.2.170.0090.00619.25
8.2.160.0100.00722.96
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0070.00321.06
8.2.100.0060.00618.03
8.2.90.0030.00717.88
8.2.80.0040.00418.98
8.2.70.0030.00717.88
8.2.60.0000.00818.00
8.2.50.0040.00418.00
8.2.40.0060.00318.16
8.2.30.0040.00418.25
8.2.20.0000.00720.55
8.2.10.0040.00418.02
8.2.00.0000.00819.58
8.1.340.0130.00917.73
8.1.330.0130.00621.88
8.1.320.0090.01016.37
8.1.310.0110.00717.17
8.1.300.0000.00916.27
8.1.290.0050.00530.84
8.1.280.0100.01025.92
8.1.270.0000.00822.23
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0100.00019.46
8.1.230.0070.00418.02
8.1.220.0000.00817.91
8.1.210.0030.00718.77
8.1.200.0060.00317.60
8.1.190.0000.00817.61
8.1.180.0000.00818.10
8.1.170.0050.00317.65
8.1.160.0040.00418.93
8.1.150.0040.00418.98
8.1.140.0040.00417.70
8.1.130.0000.00820.36
8.1.120.0000.00717.77
8.1.110.0000.00717.77
8.1.100.0040.00417.70
8.1.90.0040.00417.80
8.1.80.0000.01117.78
8.1.70.0000.00717.79
8.1.60.0000.00817.78
8.1.50.0040.00417.70
8.1.40.0000.00717.73
8.1.30.0070.00317.78
8.1.20.0150.00417.82
8.1.10.0140.00317.76
8.1.00.0140.00317.75
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.57
8.0.270.0000.00716.94
8.0.260.0030.00318.63
8.0.250.0040.00417.08
8.0.240.0000.00717.16
8.0.230.0000.00717.14
8.0.220.0070.00017.10
8.0.210.0070.00017.03
8.0.200.0030.00317.13
8.0.190.0070.00317.25
8.0.180.0080.00017.17
8.0.170.0040.00417.09
8.0.160.0050.00317.11
8.0.150.0090.00617.01
8.0.140.0120.00417.08
8.0.130.0090.00717.07
8.0.120.0090.00617.17
8.0.110.0090.00417.07
8.0.100.0070.00716.98
8.0.90.0100.00517.09
8.0.80.0050.00917.13
8.0.70.0080.00817.07
8.0.60.0060.00817.07
8.0.50.0070.00716.98
8.0.30.0090.00617.14
8.0.20.0100.00517.05
8.0.10.0080.00317.29
7.4.330.0050.00015.55
7.4.320.0000.00716.71
7.4.300.0030.00316.71
7.4.290.0000.00716.62
7.4.280.0040.00416.77
7.4.270.0120.00416.64
7.4.260.0080.00816.75
7.4.250.0110.00416.78
7.4.240.0120.00216.59
7.4.230.0080.00616.63
7.4.220.0140.00016.70
7.4.210.0110.00316.79
7.4.200.0070.00716.69
7.4.190.0080.00416.84
7.4.180.0040.01116.82
7.4.160.0120.00016.69
7.4.150.0120.00616.66
7.4.140.0140.00516.54
7.4.130.0120.00616.62
7.4.120.0180.00216.53
7.4.110.0140.00616.61
7.4.100.0160.00316.68
7.4.90.0150.00616.58
7.4.80.0190.00016.68
7.4.70.0090.01016.48
7.4.60.0170.00316.70
7.4.50.0190.00316.50
7.4.40.0220.00916.49
7.4.30.0160.00416.45
7.4.20.0150.00616.41
7.4.10.0150.00616.46
7.4.00.0140.00516.49

preferences:
82.45 ms | 1283 KiB | 5 Q