3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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;
Output for 5.6.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
I can spend upto £40 a week on cigarettes ... £160 a month. I could go on holiday for that ... ☀ðŸ˜
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.5.38
I can spend upto £40 a week on cigarettes ... £160 a month. I could go on holiday for that ... ☀ðŸ˜
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/U5sUZ on line 9
Process exited with code 255.