3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Log; interface TestInterface { public function log(); } use Log\TestInterface; class Handler implements TestInterface { public function log() { echo func_get_arg(1); } } use Log\Handler; class Log { public function __construct(TestInterface $handler) { $handler->log('test'); } } $obj = new Log(new Handler());
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ValueError: func_get_arg(): Argument #1 ($position) must be less than the number of the arguments passed to the currently executed function in /in/f4m88:14 Stack trace: #0 /in/f4m88(14): func_get_arg(1) #1 /in/f4m88(23): Log\Handler->log('test') #2 /in/f4m88(27): Log\Log->__construct(Object(Log\Handler)) #3 {main} thrown in /in/f4m88 on line 14
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:
45.78 ms | 401 KiB | 8 Q