3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a { public $b = 'a'; } die(new a());
Output for 7.1.0
Recoverable fatal error: Object of class a could not be converted to string in /in/gWi54 on line 7
Process exited with code 255.
Output for 5.2.15 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
Catchable fatal error: Object of class a could not be converted to string in /in/gWi54 on line 7
Process exited with code 255.