3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(); $arr[] = array(1 => array(2, 3 => array(4, 5)), 6); echo('<pre>'); print_r($arr); echo('</pre>');
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<pre>Array ( [0] => Array ( [1] => Array ( [0] => 2 [3] => Array ( [0] => 4 [1] => 5 ) ) [2] => 6 ) ) </pre>