3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "hola"; call_user_func(function(){ echo $a; },&$a)
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected '&' in /in/5lbu5 on line 6
Process exited with code 255.
Output for 5.4.11 - 5.6.17
Fatal error: Call-time pass-by-reference has been removed in /in/5lbu5 on line 6
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/5lbu5 on line 6 Parse error: syntax error, unexpected $end in /in/5lbu5 on line 6
Process exited with code 255.