3v4l.org

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

preferences:
34.67 ms | 402 KiB | 5 Q