3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = new DateTime('2020-12-01'); $end = new DateTime('2021-01-01'); $row = array('monday' => 1, 'tuesday' => 0, 'wednesday' => 1, 'thursday' => 1, 'friday' => 1, 'saturday' => 0, 'sunday' => 1); $interval = new DateInterval('P1D'); $daterange = new DatePeriod($begin, $interval ,$end); $array = array(); foreach($daterange as $date){ if ($row[strtolower($date->format('l'))]) { $array[] = $date->format("D Y-m-d"); } } print_r($array);

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.130.0140.00318.43
8.3.120.0160.00320.52
8.3.110.0070.01420.94
8.3.100.0000.00924.06
8.3.90.0030.00526.77
8.3.80.0060.00319.36
8.3.70.0120.00316.63
8.3.60.0120.00918.68
8.3.50.0100.00924.53
8.3.40.0070.01121.86
8.3.30.0120.00318.69
8.3.20.0000.00724.18
8.3.10.0090.00024.66
8.3.00.0000.00826.16
8.2.250.0000.00816.86
8.2.240.0090.00017.14
8.2.230.0060.00322.58
8.2.220.0100.01037.54
8.2.210.0040.00426.77
8.2.200.0040.00418.88
8.2.190.0090.00918.66
8.2.180.0070.01125.92
8.2.170.0110.00419.07
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00821.04
8.2.110.0030.00620.92
8.2.100.0110.00018.03
8.2.90.0000.00818.16
8.2.80.0030.00717.97
8.2.70.0040.00418.18
8.2.60.0060.00318.34
8.2.50.0000.00818.10
8.2.40.0000.00919.61
8.2.30.0040.00419.29
8.2.20.0040.00418.21
8.2.10.0030.00619.29
8.2.00.0000.00719.39
8.1.300.0100.00720.20
8.1.290.0000.01030.84
8.1.280.0120.00325.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.07
8.1.230.0060.00620.91
8.1.220.0030.00517.91
8.1.210.0040.00718.92
8.1.200.0040.00417.47
8.1.190.0050.00517.48
8.1.180.0030.00518.10
8.1.170.0080.00018.74
8.1.160.0040.00419.06
8.1.150.0040.00418.92
8.1.140.0050.00218.99
8.1.130.0000.00720.07
8.1.120.0000.00717.69
8.1.110.0060.00317.63
8.1.100.0000.00917.55
8.1.90.0000.00817.67
8.1.80.0070.00317.69
8.1.70.0040.00417.53
8.1.60.0030.00717.80
8.1.50.0000.00817.68
8.1.40.0000.00817.70
8.1.30.0040.00417.81
8.1.20.0040.00417.69
8.1.10.0030.00517.66
8.1.00.0040.00417.71
8.0.300.0080.00019.97
8.0.290.0060.00317.00
8.0.280.0000.00718.42
8.0.270.0030.00317.05
8.0.260.0030.00318.67
8.0.250.0070.00017.14
8.0.240.0000.00717.16
8.0.230.0030.00317.23
8.0.220.0030.00517.17
8.0.210.0040.00417.16
8.0.200.0030.00317.16
8.0.190.0040.00417.20
8.0.180.0080.00017.13
8.0.170.0000.00817.10
8.0.160.0060.00317.00
8.0.150.0070.00417.02
8.0.140.0060.00317.08
8.0.130.0030.00313.48
8.0.120.0000.00817.09
8.0.110.0000.00716.92
8.0.100.0040.00417.17
8.0.90.0040.00417.09
8.0.80.0080.00917.12
8.0.70.0030.00517.24
8.0.60.0000.00717.09
8.0.50.0060.00316.94
8.0.30.0140.00617.22
8.0.20.0060.01317.02
8.0.10.0040.00417.27
8.0.00.0110.00817.20
7.4.330.0030.00315.55
7.4.320.0060.00016.75
7.4.300.0060.00016.61
7.4.290.0000.00716.64
7.4.280.0040.00416.80
7.4.270.0030.00316.66
7.4.260.0040.00416.75
7.4.250.0030.00316.73
7.4.240.0050.00216.70
7.4.230.0030.00316.87
7.4.220.0030.00316.65
7.4.210.0070.00816.72
7.4.200.0000.00716.79
7.4.130.0150.00416.63
7.4.120.0100.00716.84
7.4.110.0070.01016.75
7.4.100.0110.00716.82
7.4.90.0120.00616.66
7.4.80.0070.01016.61
7.4.70.0130.01016.66
7.4.60.0090.00916.82
7.4.50.0100.01316.88
7.4.40.0050.01116.57
7.4.30.0030.02016.79
7.4.20.0140.00916.86
7.4.10.0150.00316.61
7.4.00.0140.00916.63
7.3.330.0030.00316.42
7.3.320.0000.00613.32
7.3.310.0030.00316.43
7.3.300.0000.00616.34
7.3.290.0010.01516.43
7.3.260.0070.01716.57
7.3.250.0100.00716.48
7.3.240.0030.01316.69
7.3.230.0100.00716.80
7.3.220.0060.01216.84
7.3.210.0130.00316.65
7.3.200.0000.01716.48
7.3.190.0190.00316.64
7.3.180.0100.01016.45
7.3.170.0080.01116.52
7.3.160.0090.00916.67
7.3.150.0120.00616.44
7.3.140.0060.01516.71
7.3.130.0190.00416.66
7.3.120.0110.00616.63
7.3.110.0130.00316.72
7.3.100.0070.01016.64
7.3.90.0140.00416.67
7.3.80.0090.00916.51
7.3.70.0090.00916.54
7.3.60.0140.00316.47
7.3.50.0110.00616.58
7.3.40.0090.01116.59
7.3.30.0060.01116.53
7.3.20.0070.01116.52
7.3.10.0120.01516.68
7.3.00.0160.00316.70

preferences:
71.07 ms | 403 KiB | 5 Q