3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); $x = new stdClass(); var_dump($x->foo->bar); var_dump($x->foo->bar());
Output for 7.0.0 - 7.1.0
NULL Fatal error: Uncaught Error: Call to a member function bar() on null in /in/FaAPP:7 Stack trace: #0 {main} thrown in /in/FaAPP on line 7
Process exited with code 255.
Output for 5.6.8 - 5.6.28
NULL Fatal error: Call to a member function bar() on null in /in/FaAPP on line 7
Process exited with code 255.
Output for 5.3.7 - 5.5.35
NULL Fatal error: Call to a member function bar() on a non-object in /in/FaAPP on line 7
Process exited with code 255.