3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pat = "[♥]+"; $sub = "heart"; echo mb_ereg_replace( $pat, $sub, "I \$♥ PHP" );

preferences:
35.88 ms | 402 KiB | 5 Q