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 ... ☀ðŸ˜"; echo mb_convert_encoding($str, "UTF-8"); //$pattern = '/[😩]/i'; // $str = preg_replace($pattern, '', $str); // echo $str;

preferences:
52.92 ms | 402 KiB | 5 Q