3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function __invoke($i) { return $i *2; } } $a = new A(); var_dump(is_callable($a));
Output for 5.3.0 - 7.2.0
bool(true)
Output for 4.3.0 - 5.2.17
bool(false)