3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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#EDITOR
Output for 4.3.0 - 7.2.0
<span style="color:red;">P</span>HP <span style="color:red;">T</span>utorial- See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#EDITOR