3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $theWordCleaned="c like c's"; $a=array("/\bc's\b/", "/\bc\b/"); $b=array("XcX", "XCX"); echo preg_replace($a, $b, $theWordCleaned);
Output for 4.3.0 - 7.2.0
XCX like XcX