3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = "ab\0c"; if (str_contains($filename, "\0")) { echo "bad filename\n"; }

preferences:
32.62 ms | 404 KiB | 5 Q