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; ?> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.E1VQ7D9F.dpuf

preferences:
38.71 ms | 402 KiB | 5 Q