3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( bin2hex( htmlspecialchars( "\xf4\x90\xbf\xbf", ENT_IGNORE, 'UTF-8' ) ) );
Output for 5.3.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(0) ""
Output for 5.3.0 - 5.3.3
string(8) "f490bfbf"
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant ENT_IGNORE - assumed 'ENT_IGNORE' in /in/1e0Td on line 3 Warning: htmlspecialchars() expects parameter 2 to be long, string given in /in/1e0Td on line 3 string(0) ""