3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_replace('~(?<!^ {0,50}) //~', '-', ' // x // y'));

preferences:
11.06 ms | 409 KiB | 5 Q