3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { function __destruct() { trigger_error(E_USER_ERROR, "BOO!"); } } try { new Foo; } catch (Exception $ex) { var_dump($ex->what()); }
Output for 7.0.0 - 7.2.0
Warning: trigger_error() expects parameter 2 to be integer, string given in /in/hd2c8 on line 3
Output for 5.3.19 - 5.6.21
Warning: trigger_error() expects parameter 2 to be long, string given in /in/hd2c8 on line 3