3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class xxyy { } class xx { function __constructor() { return new xxyy(); } } $x= new xx(); echo print_r($x);
based on JY3ur
Output for 4.3.0 - 7.1.0
xx Object ( ) 1