3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '=' in /in/a4apR on line 29
Process exited with code 255.

preferences:
191.64 ms | 1395 KiB | 60 Q