3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller { public function myAction() { } public static function myStaticAction() { } } function test_callable(callable $callable) { var_export($callable); } test_callable(['Controller', 'myStaticAction']); test_callable(['Controller', 'myAction']); // Deprecated since PHP 7 test_callable(['Controller', 'notExistingMethod']); // Fatal error: Uncaught TypeError

preferences:
28.27 ms | 402 KiB | 5 Q