<?php
set_error_handler(function($code, $message) {
var_dump($code, $message);
});
$var = null;
$var->method();
echo $e->getMessage(); // Fatal Error: Call to a member function method() on null
echo "Hello World"; // Still runs
Fatal error: Uncaught Error: Call to a member function method() on null in /in/hOuL7:8
Stack trace:
#0 {main}
thrown in /in/hOuL7 on line 8
Process exited with code 255.
Output for 5.6.0 - 5.6.40
Fatal error: Call to a member function method() on null in /in/hOuL7 on line 8
Process exited with code 255.