3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( array(), ); $rec = &$a[0]; var_dump(str_replace("2", "3", $a));
based on 47FfK
Output for 5.5.0 - 5.6.28, 7.0.6 - 7.3.1
array(1) { [0]=> array(0) { } }
Output for 7.0.0 - 7.0.5
Notice: Array to string conversion in /in/25ahu on line 6 array(1) { [0]=> string(5) "Array" }