3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public function run() { return call_user_func(array('Bar', 'getValue')); } private static function getValue() { return 'Foo'; } } class Bar extends Foo { public static function getValue() { return 'Bar'; } } $x = new Bar; $x->run();
Output for 5.2.12 - 7.1.0