- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
- Fatal error: Class Foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Foo::fooFunc) in /in/V6o8T on line 5
Process exited with code 255.
<?php
class Foo {
abstract public function fooFunc();
}
class Bar extends Foo {
public function fooFunc()
{
return 'hello';
}
}
$callable = array(new Foo, 'fooFunc');
var_dump(is_callable($callable));
var_dump(call_user_func($callable));