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 $key=>$val) { echo $key . "\n"; echo $val . "\n\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Monday Warning: Array to string conversion in /in/4hGGa on line 28 Array Friday Warning: Array to string conversion in /in/4hGGa on line 28 Array Saturday Warning: Array to string conversion in /in/4hGGa on line 28 Array Sunday Warning: Array to string conversion in /in/4hGGa on line 28 Array

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:
41.61 ms | 402 KiB | 8 Q