3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class asd{} $x = new asd; try{ (int)$x; }catch(\Throwable $e){ var_dump($e); }
based on usB2p
Output for 5.3.19 - 7.2.0
Notice: Object of class asd could not be converted to int in /in/Cqa21 on line 6