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($days[][] as $time=>$item) { echo '<li>'; echo '<span class="time">' . $time . '</span>&nbsp;'; echo $item; echo '</li>'; } echo '</ul>'; echo '</div>'; }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
Fatal error: Cannot use [] for reading in /in/4n9jD on line 8
Process exited with code 255.

preferences:
185.02 ms | 1395 KiB | 61 Q