3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo(&$var) { $var++; } $a=5; foo(&$a); echo $a; function x(&$a) { echo $a; } // x(&$a);
Output for 5.4.0 - 5.4.11
Fatal error: Call-time pass-by-reference has been removed in /in/HX9AK on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/HX9AK on line 10 6