3v4l.org

run code in 500+ PHP versions simultaneously
<?php $value = "Two spaces and one space and three spaces and ten spaces"; echo preg_replace('/ /', '<br>', $value); echo PHP_EOL; echo str_replace(" ", "<br>", $value); echo PHP_EOL; echo preg_replace('/\h{2}/', '<br>', $value);
Output for git.master, git.master_jit, rfc.property-hooks
Two<br>spaces and one space and three<br> spaces and ten<br><br><br><br><br>spaces Two<br>spaces and one space and three<br> spaces and ten<br><br><br><br><br>spaces Two<br>spaces and one space and three<br> spaces and ten<br><br><br><br><br>spaces

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.47 ms | 2016 KiB | 4 Q