3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $content = "gaja nagaja"; $token = "gaja"; $replaced = preg_replace("\\b{$token}\\b", "<span>{$token}</span>"); echo $replaced;
based on FCKSu
Output for 5.3.20 - 7.2.0
Warning: preg_replace() expects at least 3 parameters, 2 given in /in/gaUKF on line 6