3v4l.org

run code in 300+ PHP versions simultaneously
<?php $color="blue white yellow"; echo str_replace(' ','<br>',$color); // replace spaces with <br> tags echo "\n\n---\n\n"; echo str_replace(' ',"\n",$color); // this is what the rendered html will look like

preferences:
26.22 ms | 404 KiB | 5 Q