3v4l.org

run code in 300+ PHP versions simultaneously
<?php $schedule = '{ "Monday" : { "00-06" : "Non-stop", "06-08" : "Wake up" }, "Friday" : { "00-06" : "Non-stop", "18-21" : "Friday Night Party" }, "Saturday" : { "00-06" : "Non-stop", "19-22" : "Saturday Night Club Mix" }, "Sunday" : { "00-04" : "Party cool down", "04-24" : "Non-stop" } } '; $schedule = json_decode($schedule, true); foreach ($schedule as $time => $show) { echo '<h2>Monday</h2>'; foreach ($time) { echo $time . ' - ' . $show;} }

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)
5.4.240.0130.04912.38
5.4.230.0110.05312.37
5.4.220.0130.04912.38
5.4.210.0210.06912.37
5.4.200.0120.05012.37
5.4.190.0130.04712.37
5.4.180.0120.05012.37
5.4.170.0180.06012.38
5.4.160.0170.04612.37
5.4.150.0120.05112.37
5.4.140.0140.05012.06
5.4.130.0150.04612.04
5.4.120.0140.04612.01
5.4.110.0100.04912.00
5.4.100.0150.04512.00
5.4.90.0140.04912.00
5.4.80.0100.04512.01
5.4.70.0170.03912.00
5.4.60.0100.04312.00
5.4.50.0120.04012.00
5.4.40.0110.04011.99
5.4.30.0260.05911.98
5.4.20.0120.03911.98
5.4.10.0120.04111.98
5.4.00.0080.04311.48
5.3.280.0130.04312.71
5.3.270.0120.04612.72
5.3.260.0130.04512.72
5.3.250.0160.04312.72
5.3.240.0120.05012.72
5.3.230.0140.04212.71
5.3.220.0140.04312.68
5.3.210.0120.04512.68
5.3.200.0140.04212.68
5.3.190.0140.04712.68
5.3.180.0140.04212.67
5.3.170.0250.06312.67
5.3.160.0140.05212.67
5.3.150.0270.07112.67
5.3.140.0180.04612.66
5.3.130.0150.04812.66
5.3.120.0120.05312.66
5.3.110.0140.05012.66
5.3.100.0170.04712.12
5.3.90.0130.05012.08
5.3.80.0140.05212.07
5.3.70.0210.07712.08
5.3.60.0140.05312.06
5.3.50.0140.05412.00
5.3.40.0190.04712.00
5.3.30.0130.05211.94
5.3.20.0130.04911.71
5.3.10.0120.04611.68
5.3.00.0110.05211.67

preferences:
141.87 ms | 1394 KiB | 7 Q