3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function run($a) { echo get_type($a); } }; // class B extends A // { // public function run() // { // echo get_class($a); // } // } $a = array(1, 2, 3); $A = new A(); $A->run($a);
based on IEo6W
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function get_type() in /in/c0OX1:7 Stack trace: #0 /in/c0OX1(23): A->run(Array) #1 {main} thrown in /in/c0OX1 on line 7
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined function get_type() in /in/c0OX1 on line 7
Process exited with code 255.