3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace { class Bar extends PDO { public function baz() { parent::baz(); } } } namespace Foo { class PDO { public function baz() { echo __METHOD__; } } class FooBar extends Bar { } } namespace { $bar = new Foo\FooBar(); $bar->baz(); }
based on r0EhT
Output for 7.0.0 - 7.2.0
Fatal error: Class 'Foo\Bar' not found in /in/iAenN on line 24
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Fatal error: Class 'Foo\Bar' not found in /in/iAenN on line 25
Process exited with code 255.