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 - 5.6.38, hhvm-3.10.1 - 3.11.1, hhvm-3.13.2, hhvm-3.17.3 - 3.22.0, 7.0.0 - 7.2.11
string(3) "♤" ♤
Output for hhvm-3.12.14, hhvm-3.15.4

Process exited with code 137.