3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 123; $a = array(array(&$x, 'hi')); $b = $a; $b[1]++; echo $b[1];
based on ZMjX9
Output for 5.3.0 - 7.2.0
Notice: Undefined offset: 1 in /in/ZcM09 on line 5 1
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 1 in /in/ZcM09 on line 5 1