3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { $x = null; var_dump($x->method(1, 2, 3)); } catch (Throwable $e) { echo "Catch\n"; }
based on 2IXCS
Output for 7.0.0 - 7.2.0
Catch
Output for 5.6.8 - 5.6.28
Fatal error: Call to a member function method() on null in /in/uSpae on line 6
Process exited with code 255.
Output for 5.3.18 - 5.5.35
Fatal error: Call to a member function method() on a non-object in /in/uSpae on line 6
Process exited with code 255.