3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function __construct() { echo get_class_name( $this ); } } class B extends A {} new B();
based on SvDkO
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function get_class_name() in /in/6PZpG:5 Stack trace: #0 /in/6PZpG(11): A->__construct() #1 {main} thrown in /in/6PZpG on line 5
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined function get_class_name() in /in/6PZpG on line 5
Process exited with code 255.