php returns `NULL` on invalid input

```bash
$ php -r '$x = hypot([], "a"); var_dump($x);'
PHP Warning:  hypot() expects parameter 1 to be double, array given in Command line code on line 1

Warning: hypot() expects parameter 1 to be double, array given in Command line code on line 1
NULL
```