3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( "my_func" => function($param = "no parameter"){ echo "In my function. Parameter: ".$param; } ); //check if there is some function or method if( is_callable( $a["my_func"] ) ) $a["my_func"]();

preferences:
32.45 ms | 402 KiB | 5 Q