3v4l.org

run code in 300+ PHP versions simultaneously
<?php function example(string $foo) { print $foo; } // Fatal error: Uncaught TypeError: example(): Argument #1 ($foo) must be of type string, null given example(null);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
153.55 ms | 1487 KiB | 11 Q