3v4l.org

run code in 300+ PHP versions simultaneously
<?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.25 - 5.3.26, 5.4.16
Parse error: syntax error, unexpected '&' in /in/8qblj on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '&' in tPjRm on line 4
Process exited with code 255.

preferences:
191.02 ms | 1399 KiB | 51 Q