3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = "🚁"; $foo = mb_convert_encoding($foo, "UTF-8"); var_dump($foo); var_dump(htmlentities($foo));
Output for 5.6.8 - 7.1.0
string(4) "🚁" string(4) "🚁"
Output for 5.4.0 - 5.5.35
string(8) "🚁" string(11) "&eth;Ÿš"
Output for 4.3.0 - 5.3.29
string(8) "🚁" string(37) "&Atilde;&deg;&Acirc;�&Acirc;�&Acirc;�"