3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Sorry that meant to say hungover and feeling sorry for myself. 😩"; $str = "I can spend upto £40 a week on cigarettes ... £160 a month. I could go on holiday for that ... ☀ðŸ˜"; foreach(mb_list_encodings() as $chr){ echo mb_convert_encoding($str, 'UTF-8', $chr)." : ".$chr."<br>"; } //echo mb_convert_encoding($str, "UTF-8"); //$pattern = '/[😩]/i'; // $str = preg_replace($pattern, '', $str); // echo $str;

preferences:
36.31 ms | 402 KiB | 5 Q