3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Sylius\Bundle\ResourceBundle\DependencyInjection; class SyliusResourceExtension { static function test() { echo str_replace('Extension', 'Bundle', get_class($this)); } } namespace Sylius\Bundle\ProductBundle\DependencyInjection; use Sylius\Bundle\ResourceBundle\DependencyInjection\SyliusResourceExtension; { class SyliusProductExtension extends SyliusResourceExtension {} } $a = new SyliusProductExtension(); $a->test();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Using $this when not in object context in /in/MlTR0:6 Stack trace: #0 /in/MlTR0(18): Sylius\Bundle\ResourceBundle\DependencyInjection\SyliusResourceExtension::test() #1 {main} thrown in /in/MlTR0 on line 6
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
52.51 ms | 401 KiB | 8 Q