3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo; class Foo { public function unSet() { echo 'foo'; } } $foo = new Foo(); $foo->unSet();
based on 8D4t6
Output for 7.0.0 - 7.2.0
foo
Output for 5.4.12 - 5.6.28
Parse error: syntax error, unexpected 'unSet' (T_UNSET), expecting identifier (T_STRING) in /in/osHIv on line 7
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_UNSET, expecting T_STRING in /in/osHIv on line 7
Process exited with code 255.