3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arraylist = array("/abc/"=>"myfunction"); function myfunction(){ echo "Whatnow"; } foreach($arraylist as $key=>$value){ if(preg_match($key, "abc")){ $func = $value; $func(); } }

preferences:
35.29 ms | 402 KiB | 5 Q