3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Provider { /** * Dynamically handle missing method calls. * * @param string $method * @param array $parameters * @return mixed * * @throws \BadMethodCallException */ public function __call($method, $parameters) { if ($method == 'boot') { return; } throw new BadMethodCallException("Call to undefined method [{$method}]"); } } class ProviderB extends Provider { public function boot(int $x) { return 'yay'; } } class ProviderC extends Provider { } $f = new ProviderB; $f->boot(1, 2, 3); $g = new ProviderC; $g->boot(1, 2, 3);
Output for git.master, git.master_jit, rfc.property-hooks

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