<?php class test { function __invoke() { echo 'invoke'; } } $callable = new test(); if (is_callable($callable)) { echo 'is callable!'; } else { echo 'not callable'; } $callable();
You have javascript disabled. You will not be able to edit any code.