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 ) ) { foreach ( $auto as $diam ) { // here you have access to $diam['top'] and $diam['bottom'] echo '[0] = ', $diam[0], PHP_EOL; echo '[1] = ', $diam[1], PHP_EOL; } } ?>
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
[0] = 36 [1] = HOLLAND [0] = 15 [1] = Aanvalluhhh!!!
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
[0] = 36 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ROAOA on line 12 PHP_EOL[1] = HOLLAND Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ROAOA on line 13 PHP_EOL[0] = 15 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ROAOA on line 12 PHP_EOL[1] = Aanvalluhhh!!! Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ROAOA on line 13 PHP_EOL