3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace www; class Base { public function ec() { echo "1111"}; } class A extends namespace\Base {} namespace ttt; class Base { public function ec() { echo "222"}; } class B extends A {} $a = new \ttt\B(); $a->ec()
Output for 5.3.0 - 5.4.18
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/LTTje on line 4
Process exited with code 255.