3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(preg_replace('/.*/', '\0', 'potato'));

preferences:
49.64 ms | 402 KiB | 5 Q