3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $auto[0] = array('36','HOLLAND'); $auto[1] = array('15','Aanvalluhhh!!!'); print_r($auto[0][0]); if ( isset( $auto ) ) { echo '<table>'; foreach ( $auto as $diam ) { // here you have access to $diam['top'] and $diam['bottom'] echo '<tr>'; echo ' <td>', $diam, '</td>'; echo ' <td>', $diam[1], '</td>'; echo '</tr>'; } echo '</table>'; } ?>
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
36<table><tr> <td> Notice: Array to string conversion in /in/I5uWk on line 14 Array</td> <td>HOLLAND</td></tr><tr> <td> Notice: Array to string conversion in /in/I5uWk on line 14 Array</td> <td>Aanvalluhhh!!!</td></tr></table>
Output for 4.3.0 - 5.3.29
36<table><tr> <td>Array</td> <td>HOLLAND</td></tr><tr> <td>Array</td> <td>Aanvalluhhh!!!</td></tr></table>