3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exhibitions = [ [ 'exhibition_title' => 'Picasso', 'venue_name' => 'Gallery 1', 'room_name' => 'Room 4', 'start_date' => '2023-11-15', 'end_date' => '2023-11-17', 'room_id' => 261, 'exhibition_id' => 3540, 'venue_order' => 2, ], [ 'exhibition_title' => 'Monet', 'venue_name' => 'Gallery 4', 'room_name' => 'Room 2', 'start_date' => '2023-10-30', 'end_date' => '2023-11-03', 'room_id' => 274, 'exhibition_id' => 8417, 'venue_order' => 1, ] ]; $result = []; foreach ($exhibitions as $row) { $dateObjects = new DatePeriod( new DateTime($row['start_date']), new DateInterval('P1D'), new DateTime("{$row['end_date']} +1 day") ); foreach ($dateObjects as $d) { $result[] = $row + ['date' => $d->format("Y-m-d")]; } } var_export($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.0150.00618.85
8.4.120.0120.00823.78
8.4.110.0090.01019.05
8.4.100.0030.00518.88
8.4.90.0050.00420.93
8.4.80.0150.00418.94
8.4.70.0110.01018.07
8.4.60.0070.01018.74
8.4.50.0110.01118.71
8.4.40.0090.01217.78
8.4.30.0060.00318.72
8.4.20.0100.01020.70
8.4.10.0110.00819.59
8.3.260.0110.00916.67
8.3.250.0120.00719.18
8.3.240.0080.01217.41
8.3.230.0130.00716.50
8.3.220.0110.00719.08
8.3.210.0110.00816.72
8.3.200.0040.00516.82
8.3.190.0080.00919.02
8.3.180.0100.00917.36
8.3.170.0060.01318.84
8.3.160.0040.01516.81
8.3.150.0110.00717.25
8.3.140.0090.00916.83
8.3.130.0080.00016.70
8.3.120.0030.00619.04
8.3.110.0040.00420.94
8.3.100.0040.00416.63
8.3.90.0120.00616.88
8.3.80.0070.00318.55
8.3.70.0130.00316.75
8.3.60.0070.00716.88
8.3.50.0070.01418.78
8.3.40.0100.01019.85
8.3.30.0110.00321.91
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0100.00920.32
8.2.280.0130.00718.56
8.2.270.0040.00417.13
8.2.260.0040.01417.55
8.2.250.0050.00318.59
8.2.240.0070.00718.98
8.2.230.0130.00022.58
8.2.220.0110.00424.06
8.2.210.0060.00326.77
8.2.200.0060.00317.00
8.2.190.0150.00416.63
8.2.180.0090.00616.75
8.2.170.0110.00719.25
8.2.160.0070.00722.96
8.2.150.0030.00525.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0090.00019.79
8.2.110.0100.01022.42
8.2.100.0110.01121.03
8.2.90.0200.01019.14
8.2.80.0190.01319.14
8.2.70.0040.01218.90
8.2.60.0200.00719.20
8.2.50.0080.00420.13
8.2.40.0140.00019.15
8.2.30.0040.00919.03
8.2.20.0050.01019.11
8.2.10.0110.00419.28
8.2.00.0090.00619.29
8.1.330.0090.00921.73
8.1.320.0120.00718.36
8.1.310.0100.00716.98
8.1.300.0090.00018.06
8.1.290.0030.00718.88
8.1.280.0150.00025.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0100.00318.92
8.1.230.0090.00618.88
8.1.220.0060.00818.83
8.1.210.0110.00420.00
8.1.200.0110.00418.67
8.1.190.0090.00420.00
8.1.180.0090.00618.68
8.1.170.0110.00318.94
8.1.160.0110.00418.72
8.1.150.0080.00420.63
8.1.140.0110.00318.69
8.1.130.0120.00318.73
8.1.120.0120.00018.79
8.1.110.0090.00319.88
8.1.100.0070.00718.94
8.1.90.0040.00918.93
8.1.80.0080.00818.59
8.1.70.0130.00018.92
8.1.60.0100.00618.95
8.1.50.0160.00018.79
8.1.40.0110.00318.92
8.1.30.0090.00319.16
8.1.20.0130.00319.01
8.1.10.0150.00018.83
8.1.00.0070.00718.81
8.0.300.0090.00618.18
8.0.290.0130.00418.31
8.0.280.0120.00318.04
8.0.270.0120.00318.24
8.0.260.0060.00618.70
8.0.250.0120.00318.21
8.0.240.0100.00718.20
8.0.230.0090.00518.38
8.0.220.0120.00318.16
8.0.210.0070.00718.11
8.0.200.0120.00318.38
8.0.190.0080.00418.41
8.0.180.0090.00618.24
8.0.170.0110.00418.25
8.0.160.0150.00018.24
8.0.150.0110.00418.08
8.0.140.0110.00418.25
8.0.130.0070.00718.36
8.0.120.0250.00017.73
8.0.110.0040.00818.52
8.0.100.0300.00318.26
8.0.90.0210.00618.39
8.0.80.0090.00618.23
8.0.70.0150.00018.21
8.0.60.0090.00518.26
8.0.50.0190.01518.11
8.0.30.0240.00618.59
8.0.20.0310.00418.11
8.0.10.0330.00018.10

preferences:
35.2 ms | 403 KiB | 5 Q