3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = 'PHP Tutorial'; $text = preg_replace('/(\b[a-z])/i','<font style="color:red;">\1</span>',$text); echo $text; ?>
Output for 4.3.0 - 7.2.0
<font style="color:red;">P</span>HP <font style="color:red;">T</span>utorial