3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days[] = json_decode(file_get_contents('config/schedule.json'), TRUE); foreach($days as $day) { echo '<div class="day">'; echo '<h2>' . $day . '</h2>'; echo '<ul>'; foreach($day as $time=>$item) { echo '<li>'; echo '<span class="time">' . $time . '</span>&nbsp;'; echo $item; echo '</li>'; } echo '</ul>'; echo '</div>'; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): open_basedir restriction in effect. File(config/schedule.json) is not within the allowed path(s): (/tmp:/in:/etc) in /in/mgqSg on line 2 Warning: file_get_contents(config/schedule.json): Failed to open stream: Operation not permitted in /in/mgqSg on line 2 <div class="day"><h2></h2><ul> Warning: foreach() argument must be of type array|object, null given in /in/mgqSg on line 8 </ul></div>

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