3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function assign(&$a, &$b, &$c) { static $i = 0; $a = 'a' . $i; $b = 'b' . $i; $c = 'c' . $i; $i++;} $ar_e = array('d' => null); assign($ar['a'], $direct, $ar_e['d']); var_dump($ar, $direct, $ar_e);
based on ZOC9O
Output for 4.3.0 - 7.2.0
array(1) { ["a"]=> string(2) "a0" } string(2) "b0" array(1) { ["d"]=> string(2) "c0" }