3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace Sylius\Bundle\ResourceBundle\DependencyInjection; class SyliusResourceExtension { function test() { echo call_user_func(array(str_replace('Extension', 'Bundle', get_class($this)), 'bar'); } function bar() { echo 'foo'; } } namespace Sylius\Bundle\ProductBundle\DependencyInjection; use Sylius\Bundle\ResourceBundle\DependencyInjection\SyliusResourceExtension; { class SyliusProductExtension extends SyliusResourceExtension {} } $a = new SyliusProductExtension(); $a->test();
Output for 5.3.0 - 5.4.21
Parse error: syntax error, unexpected ';' in /in/hG4K8 on line 6
Process exited with code 255.