3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(){} $a = array( "my_func" => 'test' ); //check if there is some function or method if( is_callable( $a["my_func"] ) ) $a["my_func"]();

preferences:
32.98 ms | 402 KiB | 5 Q