3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public function foo() { b = new B(); b->bar(); } } class B extends A { public function bar() { echo get_class($this) . __FUNCTION__ . "\n"; } } a = new A; a->foo();
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected '=' in /in/ug7gH on line 6
Process exited with code 255.