3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(1) { ["a"]=> string(2) "a0" } string(2) "b0" array(1) { ["d"]=> string(2) "c0" }
Output for hhvm-3.10.0

Process exited with code 153.