3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function doSomething( &$arg ) { echo &$arg; $return = $arg; $arg += 1; return $return; } $a = 3; $b = doSomething( $a ); echo "a=$a,b=$b";
Output for 5.3.0 - 5.4.16
Parse error: syntax error, unexpected '&' in /in/8qblj on line 4
Process exited with code 255.