3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A {} var_dump(chr(new A()));
based on mf4Pg
Output for 4.3.0 - 4.4.9, 5.3.0 - 7.1.0
string(1) ""
Output for 5.1.0 - 5.2.17
Notice: Object of class A could not be converted to int in /in/AEARW on line 5 string(1) ""
Output for 5.0.0 - 5.0.5
string(1) ""