3v4l.org

run code in 300+ PHP versions simultaneously
<?php function safe_func_get_arg(int $arg_num) { error_clear_last(); $result = \func_get_arg($arg_num); if ($result === false) { throw new \Exception(); } return $result; } function fn() { var_dump(safe_func_get_arg(0)); } fn('abc'); fn(['a', 'b', 'c']);

This is an error 404

There are `0` results


preferences:
272.5 ms | 1010 KiB | 7 Q