3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php set_error_handler(function () { return true; }); function foo() { try { new Closure; return "hello"; } catch (Throwable $t) { return "wat"; } } var_dump(foo());
based on vahiG
Output for 7.0.0 - 7.2.0
string(3) "wat"
Output for 5.3.18 - 5.6.28
string(5) "hello"