3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Αpp { public static function fᴏᴏ () { echo "Foo"; } public static function foo () { echo "Bar"; } } class App { public static function foo () { echo "Baz"; } public static function fᴏᴏ () { echo "Bang"; } public static function fᴏo () { echo "hello"; } public static function hello () { echo "hеllo"; } } App::foo(); echo "\n"; Αpp::foo(); echo "\n"; App::fᴏᴏ(); echo "\n"; Αpp::fᴏᴏ(); echo "\n"; echo "\n"; echo "\n"; App::fᴏo(); echo "\n"; App::boom(); echo "\n"; $compare = strcmp(App::fᴏo(), App::hello()) === 0 ? "Identical" : "Different"; var_dump ($compare);
Output for git.master, git.master_jit, rfc.property-hooks
Baz Bar Bang Foo hello Fatal error: Uncaught Error: Call to undefined method App::boom() in /in/LHCtE:36 Stack trace: #0 {main} thrown in /in/LHCtE on line 36
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.13 ms | 401 KiB | 8 Q