3v4l.org

run code in 300+ PHP versions simultaneously
<?php $FOO = "this is a test"; $str = ereg_replace("\s", " \/ ", trim($FOO)); echo $str;

preferences:
44.16 ms | 402 KiB | 5 Q