3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function &f(&$in){ return $in; } $a=f($a=1); //i have to eval it so the error below isn't caught at compile time-- eval("f(1);");
based on v8EQG
Output for 7.0.0 - 7.1.10
Notice: Only variables should be passed by reference in /in/ReWug on line 5 Fatal error: Only variables can be passed by reference in /in/ReWug(8) : eval()'d code on line 1
Process exited with code 255.
Output for hhvm-3.22.0
Strict Warning: Only variables should be passed by reference in /in/ReWug on line -1 Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in /in/ReWug(-1)(7b25524ebecb8eb3bc6247ec2e45c1dc) : eval()'d code:-1 Stack trace: #0 /in/ReWug(-1): include() #1 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.21.3
Strict Warning: Only variables should be passed by reference in /in/ReWug on line 5 Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in /in/ReWug(8)(7b25524ebecb8eb3bc6247ec2e45c1dc) : eval()'d code:1 Stack trace: #0 /in/ReWug(8): include() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Strict Warning: Only variables should be passed by reference in /in/ReWug on line 5 Fatal error: Cannot pass parameter 1 by reference in /in/ReWug(8)(7b25524ebecb8eb3bc6247ec2e45c1dc) : eval()'d code on line 1
Process exited with code 255.
Output for 5.1.2 - 5.6.30
Strict Standards: Only variables should be passed by reference in /in/ReWug on line 5 Fatal error: Only variables can be passed by reference in /in/ReWug(8) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.2 - 5.1.1
Fatal error: Only variables can be passed by reference in /in/ReWug(8) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Only variables can be passed by reference in /in/ReWug(8) : eval()'d code on line 1