3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { public function __construct($x){ ++$x; echo "You sent me $b\n"; } } $o = new Test(&$b=8); var_dump($b == $GLOBALS['b']);
Output for 5.4.0 - 5.4.23
Fatal error: Call-time pass-by-reference has been removed in /in/hUrtm on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Deprecated: Call-time pass-by-reference has been deprecated in /in/hUrtm on line 8 Parse error: syntax error, unexpected '=', expecting ')' in /in/hUrtm on line 8
Process exited with code 255.