3v4l.org

run code in 300+ PHP versions simultaneously
<?php $blah = false; echo "calling function \n"; try { test($blah); }catch(\Error $e){ echo "Caught\n"; print_r($e); } function test(array $val){ echo "inside test \n"; print_r($val); echo "\n"; } echo "done\n";

preferences:
47.77 ms | 402 KiB | 5 Q