3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { protected static function whoami() { echo "Base "; } public static function whoareyou() { static::whoami(); } } class A extends Base { public static function test() { Base::whoareyou(); self::whoareyou(); parent::whoareyou(); A::whoreareyou(); static::whoareyou(); } public static function whoami() { echo "A "; } } class B extends A { public static function whoami() { echo "B "; } } B::test();
Output for git.master, git.master_jit, rfc.property-hooks
Base B B Fatal error: Uncaught Error: Call to undefined method A::whoreareyou() in /in/aleQS:17 Stack trace: #0 /in/aleQS(33): A::test() #1 {main} thrown in /in/aleQS on line 17
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:
48.6 ms | 401 KiB | 8 Q