3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseExample { public static function __callStatic($name, array $arguments) { echo __METHOD__.'('.$name.')'."\n"; } public function __call2($name, array $arguments) { echo __METHOD__.'('.$name.')'."\n"; } } class Example extends BaseExample { public function run() { static::test1(); $this->test2(); } } $e = new Example(); $e->run();
Output for git.master, git.master_jit, rfc.property-hooks
BaseExample::__callStatic(test1) Fatal error: Uncaught Error: Call to undefined method Example::test2() in /in/3leqG:19 Stack trace: #0 /in/3leqG(25): Example->run() #1 {main} thrown in /in/3leqG on line 19
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:
32.05 ms | 401 KiB | 8 Q