3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function assign(&$a, &$b, &$c) { $a = 'a'; $b = 'b'; $c = 'c'; } $ar_e = array('d' => null); assign($ar['a'], $direct, $ar_e['d']); var_dump($ar, $direct, $ar_e);
based on AfjNu
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(1) { ["a"]=> string(1) "a" } string(1) "b" array(1) { ["d"]=> string(1) "c" }