3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'PHP Tutorial'; $text = preg_replace('/(\b[a-z])/i','<span style="color:red;">\1</span>',$text); echo $text; ?>

preferences:
64.96 ms | 402 KiB | 5 Q