3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL | E_STRICT); class a { function api() { echo 'hi'; } } class b extends a { function api() { $argv = func_get_args(); return call_user_func_array( array( 'a', 'api' ), $argv ); } } $b = new b(); $b->api();
Output for 5.0.4 - 5.1.1, 5.3.0 - 7.1.0
hi
Output for 5.1.2 - 5.2.17
Strict Standards: Non-static method a::api() cannot be called statically, assuming $this from compatible context b in /in/dikFp on line 13 hi
Output for 5.0.0 - 5.0.3

Process exited with code 139.
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/dikFp on line 3 hi