3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_str_starts_with(string $haystack, string $needle): bool { return true; } var_dump(str_starts_with(null, 'abc')); var_dump(my_str_starts_with(null, 'abc'));

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
213.21 ms | 2183 KiB | 11 Q