3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
based on NClj6
Output for 7.0.0 - 7.2.0
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.
Output for 5.3.19 - 5.6.28
Baz Bar Bang Foo hello Fatal error: Call to undefined method App::boom() in /in/LHCtE on line 36
Process exited with code 255.