3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = new __PHP_Incomplete_Class(); var_dump(is_object($x)); class Foo extends __PHP_Incomplete_Class { } $y = new Foo(); var_dump(is_object($y)); class Bar extends stdClass { } $z = new Bar(); var_dump(is_object($z)); var_dump($x instanceof stdClass); var_dump($y instanceof stdClass); var_dump($z instanceof stdClass);
based on amqBC
Output for 5.0.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
bool(false) bool(true) bool(true) bool(false) bool(false) bool(true)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/bvYi0 on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING in /in/bvYi0 on line 14
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/bvYi0 on line 14
Process exited with code 255.