3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function func(&$val) {} $a = array(); func($a['x']); var_dump($a);
Output for 4.3.0 - 7.1.7, 7.2.0
array(1) { ["x"]=> NULL }
Output for 7.1.10

Process exited with code 137.