3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Base { } class NoMagic extends Base { function isParentFoobarCallable() { return is_callable('parent::foobar'); } } class Magic extends NoMagic { function __call($method, $args) {} } $nomagic = new NoMagic(); var_dump($nomagic->isParentFoobarCallable()); $magic = new Magic(); var_dump($magic->isParentFoobarCallable());
Output for 4.3.0 - 5.2.17, 5.3.1 - 7.1.0
bool(false) bool(false)
Output for 5.3.0
bool(false) bool(true)