3v4l.org

run code in 300+ PHP versions simultaneously
<?php $promenna = (str_replace(" ","-","Nějaký dlouhý text s mezerami")); echo $promenna; ?>

preferences:
33.25 ms | 402 KiB | 5 Q