3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $reg->new = true; echo $reg; print_r ($reg); var_dump ($reg); ?>
based on rcoJ2
Output for 7.1.0 - 7.2.0
Warning: Creating default object from empty value in /in/Ztgp5 on line 2 Recoverable fatal error: Object of class stdClass could not be converted to string in /in/Ztgp5 on line 3
Process exited with code 255.
Output for 5.4.10 - 7.0.20
Warning: Creating default object from empty value in /in/Ztgp5 on line 2 Catchable fatal error: Object of class stdClass could not be converted to string in /in/Ztgp5 on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Strict Standards: Creating default object from empty value in /in/Ztgp5 on line 2 Catchable fatal error: Object of class stdClass could not be converted to string in /in/Ztgp5 on line 3
Process exited with code 255.