3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo preg_replace('{.}i', '<$0>', 'ddd');
based on g8Mvq
Output for 4.3.0 - 7.1.0
<d><d><d>