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']), DatePeriod::INCLUDE_END_DATE ); 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.0080.00418.79
8.4.120.0080.01224.05
8.4.110.0100.01118.96
8.4.100.0150.00519.03
8.4.90.0070.01020.86
8.4.80.0080.00918.91
8.4.70.0140.00418.15
8.4.60.0140.00618.80
8.4.50.0070.01018.13
8.4.40.0150.00617.82
8.4.30.0130.00718.89
8.4.20.0130.00718.77
8.4.10.0030.00619.77
8.3.260.0110.01016.64
8.3.250.0090.00919.11
8.3.240.0100.01017.24
8.3.230.0110.01016.87
8.3.220.0090.01018.97
8.3.210.0110.00918.85
8.3.200.0060.00316.62
8.3.190.0140.00517.24
8.3.180.0110.00816.87
8.3.170.0060.01219.07
8.3.160.0160.00318.45
8.3.150.0090.00916.85
8.3.140.0160.00318.42
8.3.130.0040.00416.57
8.3.120.0120.00318.88
8.3.110.0110.00720.94
8.3.100.0100.01024.06
8.3.90.0080.00026.77
8.3.80.0030.00616.88
8.3.70.0090.01216.88
8.3.60.0120.00618.56
8.3.50.0120.00318.60
8.3.40.0130.00720.47
8.3.30.0070.00721.86
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0170.00328.09
8.2.290.0120.00720.51
8.2.280.0110.01018.57
8.2.270.0100.00717.52
8.2.260.0090.00020.02
8.2.250.0050.00317.15
8.2.240.0060.00318.94
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0040.01426.77
8.2.200.0070.00318.29
8.2.190.0100.01016.75
8.2.180.0120.00616.75
8.2.170.0120.00322.96
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0090.00928.09
8.2.120.0170.00328.09
8.2.110.0110.01128.09
8.2.100.0130.00728.09
8.2.90.0100.01028.09
8.2.80.0100.01028.09
8.2.70.0060.01328.09
8.2.60.0110.00728.09
8.2.50.0170.00328.09
8.2.40.0060.00928.09
8.2.30.0130.00628.09
8.2.20.0070.01128.09
8.2.10.0070.01428.09
8.2.00.0110.01128.09
8.1.330.0060.01321.89
8.1.320.0040.01016.02
8.1.310.0080.01118.70
8.1.300.0090.00918.48
8.1.290.0030.00718.88
8.1.280.0140.00725.92
8.1.270.0080.00022.06
8.1.260.0160.00328.09
8.1.250.0040.01228.09
8.1.240.0090.01228.09
8.1.230.0170.00328.09
8.1.220.0070.01128.09
8.1.210.0090.00628.09
8.1.200.0060.00928.09
8.1.190.0090.00628.09
8.1.180.0090.00628.09
8.1.170.0080.00828.09
8.1.160.0040.01128.09
8.1.150.0150.00028.09
8.1.140.0060.00928.09
8.1.130.0100.00728.09
8.1.120.0070.01028.09
8.1.110.0040.01128.09
8.1.100.0090.00628.09
8.1.90.0080.00828.09
8.1.80.0120.00328.09
8.1.70.0140.00328.09
8.1.60.0170.00028.09
8.1.50.0030.00628.09
8.1.40.0040.00428.09
8.1.30.0000.00828.09
8.1.20.0040.00428.09
8.1.10.0030.00528.09
8.1.00.0000.00828.09

preferences:
35.1 ms | 403 KiB | 5 Q