3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fn = function() { $application->test(); // $application is undefined }; $fn();
Output for 7.0.5 - 7.1.0
Notice: Undefined variable: application in /in/sSFZb on line 3 Fatal error: Uncaught Error: Call to a member function test() on null in /in/sSFZb:3 Stack trace: #0 /in/sSFZb(5): {closure}() #1 {main} thrown in /in/sSFZb on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: application in /in/sSFZb on line 3 Fatal error: Uncaught Error: Call to a member function test() on unknown in /in/sSFZb:3 Stack trace: #0 /in/sSFZb(5): {closure}() #1 {main} thrown in /in/sSFZb on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Notice: Undefined variable: application in /in/sSFZb on line 3 Fatal error: Call to a member function test() on null in /in/sSFZb on line 3
Process exited with code 255.
Output for 5.3.0 - 5.5.36
Notice: Undefined variable: application in /in/sSFZb on line 3 Fatal error: Call to a member function test() on a non-object in /in/sSFZb on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/sSFZb on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/sSFZb on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/sSFZb on line 2
Process exited with code 255.