3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo->bar () ();
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: foo in /in/2eGa2 on line 2 Fatal error: Uncaught Error: Call to a member function bar() on null in /in/2eGa2:2 Stack trace: #0 {main} thrown in /in/2eGa2 on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: foo in /in/2eGa2 on line 2 Fatal error: Uncaught Error: Call to a member function bar() on unknown in /in/2eGa2:2 Stack trace: #0 {main} thrown in /in/2eGa2 on line 2
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected '(' in /in/2eGa2 on line 2
Process exited with code 255.