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" } } '; foreach ($schedule['Monday'] as $time => $show) { echo '<h2>Monday</h2>'; echo $time . ' - ' . $show; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/E8Aot:24 Stack trace: #0 {main} thrown in /in/E8Aot on line 24
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
30.9 ms | 401 KiB | 8 Q