3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); try { call_method(null); // oops! } catch (Error $e) { Var_dump($e); }
based on YNDfG
Output for 7.0.0 - 7.2.0
object(Error)#1 (7) { ["message":protected]=> string(40) "Call to undefined function call_method()" ["string":"Error":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/387Je" ["line":protected]=> int(5) ["trace":"Error":private]=> array(0) { } ["previous":"Error":private]=> NULL }
Output for 5.3.20 - 5.6.28
Warning: Unsupported declare 'strict_types' in /in/387Je on line 3 Fatal error: Call to undefined function call_method() in /in/387Je on line 5
Process exited with code 255.