3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $object_instance = new stdClass(); $object_as_string = (string) $object_instance; var_dump($object_as_string);
based on h6eG1
Output for 7.1.0 - 7.2.0
Recoverable fatal error: Object of class stdClass could not be converted to string in /in/R5Pqf on line 5
Process exited with code 255.
Output for 5.5.0 - 7.0.20
Catchable fatal error: Object of class stdClass could not be converted to string in /in/R5Pqf on line 5
Process exited with code 255.