3v4l.org

run code in 300+ PHP versions simultaneously
<?php $times = [ "opening_time" => [ "monday" => ["10:30 am", "6:30 pm"], "tuesday" => ["12:30 pm"], "wednesday" => ["4:30 pm"], "thursday" => ["2:30 pm"], "friday" => ["4:00 pm"], "saturday" => ["6:00 am"], "sunday" => [] ], "closing_time" => [ "monday" => ["6:00 pm", "10:30 pm"], "tuesday" => ["7:00 pm"], "wednesday" => ["10:00 pm"], "thursday" => ["6:30 pm"], "friday" => ["11:00 pm"], "saturday" => ["6:00 pm"], "sunday" => [] ] ]; $slots = max(array_map('count', $times['opening_time'])); echo '<table border=2 cell-padding=5>' ."\n"; foreach ($times['opening_time'] as $day => $opens) { echo "\t<tr><td>$day</td>"; for ($i = 0; $i < $slots; ++$i) { printf( '<td>%s</td>', isset($opens[$i], $times['closing_time'][$day][$i]) ? "{$opens[$i]} to {$times['closing_time'][$day][$i]}" : '' ); } echo "</tr>\n"; } echo '</table>';

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.00.0110.01119.84
8.4.150.0030.00014.05
8.4.140.0110.01217.77
8.4.130.0080.01217.58
8.4.120.0060.00324.00
8.4.110.0070.01222.47
8.4.100.0130.00818.71
8.4.90.0130.00718.80
8.4.80.0040.00518.58
8.4.70.0120.00917.90
8.4.60.0270.00918.20
8.4.50.0230.01017.96
8.4.40.0220.00718.01
8.4.30.0220.01118.09
8.4.20.0230.01218.50
8.4.10.0270.00418.25
8.3.280.0120.01018.42
8.3.270.0110.00916.88
8.3.260.0070.00116.67
8.3.250.0110.00819.05
8.3.240.0120.00716.92
8.3.230.0110.00818.93
8.3.220.0110.00619.03
8.3.210.0110.00816.73
8.3.200.0220.00716.62
8.3.190.0100.00916.80
8.3.180.0210.00717.00
8.3.170.0240.00618.65
8.3.160.0270.00416.91
8.3.150.0250.00616.71
8.3.140.0210.00816.72
8.3.130.0160.00217.46
8.3.120.0200.00817.71
8.3.110.0200.00518.67
8.3.100.0260.00720.17
8.3.90.0160.00421.72
8.3.80.0240.00317.57
8.3.70.0230.01117.51
8.3.60.0220.01117.52
8.3.50.0250.00817.59
8.3.40.0360.01117.27
8.3.30.0420.00617.18
8.3.20.0380.01017.41
8.3.10.0310.01017.55
8.3.00.0350.00517.46
8.2.290.0100.01120.38
8.2.280.0220.00617.46
8.2.270.0200.00916.93
8.2.260.0190.00516.72
8.2.250.0150.00916.60
8.2.240.0240.00517.69
8.2.230.0230.00719.53
8.2.220.0200.00427.04
8.2.210.0220.00821.48
8.2.200.0190.00616.44
8.2.190.0250.00716.42
8.2.180.0220.00916.61
8.2.170.0390.00717.74
8.2.160.0280.01017.61
8.2.150.0310.00817.57
8.2.140.0370.00517.45
8.2.130.0320.00917.52
8.2.120.0410.00817.53
8.2.110.0330.01417.62
8.2.100.0360.00917.65
8.2.90.0310.00817.53
8.2.80.0400.00317.52
8.2.70.0320.00817.39
8.2.60.0300.01017.43
8.2.50.0330.00717.41
8.2.40.0330.01017.38
8.2.30.0320.00617.60
8.2.20.0320.00717.38
8.2.10.0330.00517.42
8.2.00.0270.01217.56
8.1.330.0110.00821.87
8.1.320.0180.00616.25
8.1.310.0180.00416.30
8.1.300.0190.00517.18
8.1.290.0190.00623.52
8.1.280.0220.00921.06
8.1.270.0370.00817.38
8.1.260.0360.00617.34
8.1.250.0380.00717.24
8.1.240.0360.00617.28
8.1.230.0400.00817.38
8.1.220.0350.00817.25
8.1.210.0350.00716.95
8.1.200.0230.01517.32
8.1.190.0330.00717.07
8.1.180.0340.00616.98
8.1.170.0370.00417.23
8.1.160.0330.00917.15
8.1.150.0340.00917.11
8.1.140.0330.00617.22
8.1.130.0310.01017.28
8.1.120.0330.01017.35
8.1.110.0300.01117.23
8.1.100.0280.01217.27
8.1.90.0290.00817.22
8.1.80.0330.00617.13
8.1.70.0250.01117.24
8.1.60.0360.00417.19
8.1.50.0290.00817.26
8.1.40.0310.00617.38
8.1.30.0300.00817.36
8.1.20.0340.00817.51
8.1.10.0330.00917.26
8.1.00.0360.00617.34

preferences:
39.29 ms | 403 KiB | 5 Q