3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public static function qux() { $this = new stdClass(); return function () use($this) { return $this; } } } var_dump(call_user_func(Foo::qux()));
Output for 5.3.0 - 5.4.30
Fatal error: Cannot re-assign $this in /in/RJg4Q on line 7
Process exited with code 255.