3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo{ public $x = 42; } $foo = new Foo; var_dump(is_a($foo, "Foo")); var_dump(is_a((unset)$foo, "Foo"));
based on vgnlj
Output for 7.2.0 - 7.3.0beta1
Deprecated: The (unset) cast is deprecated in /in/HZYN3 on line 7 bool(true) bool(false)
Output for 5.6.0 - 5.6.9, 5.6.11 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.20
bool(true) bool(false)
Output for 5.6.10

Process exited with code 137.