3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(1); function fooRef($a, $b) { var_dump($a, $b); $b = 3; } $b = 2; array_walk($array, 'fooRef', &$b); var_dump($b);
Output for 5.4.0 - 5.4.17
Fatal error: Call-time pass-by-reference has been removed in /in/vMFQW on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/vMFQW on line 12 int(1) int(0) int(2)