3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function __construct() { call_user_func(array('Bar', 'testEcho')); } } class Bar { private function testEcho() { echo 'test'; } } $d = new Foo();
based on 7VpEQ
Output for 5.3.20 - 7.2.0
Warning: call_user_func() expects parameter 1 to be a valid callback, cannot access private method Bar::testEcho() in /in/VfP86 on line 6