3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $b = array(0 => 1); $a[$b[1]] = array(); print_r($a);
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined offset: 1 in /in/TOiFZ on line 4 Array ( [] => Array ( ) )
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: 1 in /in/TOiFZ on line 4 Array ( [] => Array ( ) )
Output for 4.3.0 - 5.4.45
Array ( [] => Array ( ) )