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.4.0 - 5.5.2
Parse error: syntax error, unexpected end of file in /in/vZTD3 on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/vZTD3 on line 15
Process exited with code 255.