3v4l.org

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