3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public static function f($c) { $c->m(); return $c; } } class B { public function g($c) { $ret=A::f($c); if($ret===false) { echo "Should never print this\n"; } } } class C { public function m() { this = null; } } $b = new B(); $b->g(null);
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected '=' in /in/a4apR on line 29
Process exited with code 255.