3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function f() { echo get_static_class(); } } class B extends A {} $a = new A; $b = new B; $a->f(); $b->f();
based on 5aenJ
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function get_static_class() in /in/LPASF:5 Stack trace: #0 /in/LPASF(14): A->f() #1 {main} thrown in /in/LPASF on line 5
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function get_static_class() in /in/LPASF on line 5
Process exited with code 255.