3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $data = "\xe2\x99\xa4"; $data = mb_ereg_replace("\u2665","heart",$data); var_dump($data); echo $data;
based on Ro14h
Output for 5.3.18 - 7.2.0
string(3) "♤" ♤