3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace HookInvoker\FileSystem { class PhpFunctionProducer { const FUNCTION_CODE = <<<PHP <?php /** * This function wau auto created, pleaee do not edit */ function :function: () { return \DrupalContainer\Registry::getContainer() ->get(':class:') ->hook(func_get_args()); } PHP; public function getPhpFunctionCode() { return self::FUNCTION_CODE; } public function create($function) { $code = str_replace( [':function:', ':class:'], [$function, 'module.test.init'], $this->getPhpFunctionCode()); echo $code; } } } namespace { $x = new HookInvoker\FileSystem\PhpFunctionProducer(); $x->create('test_init'); }
Output for git.master, git.master_jit, rfc.property-hooks
<?php /** * This function wau auto created, pleaee do not edit */ function test_init () { return \DrupalContainer\Registry::getContainer() ->get('module.test.init') ->hook(func_get_args()); }

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:
37.19 ms | 401 KiB | 8 Q