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() { self = null; } } $b = new B(); $b->g(new C());
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected '=' in /in/albgv on line 29
Process exited with code 255.