3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string_hex = unpack('H*', '你好'); echo hex2bin($string_hex[1]);
based on eFdlO
Output for 5.4.0 - 7.1.0
你好
Output for 5.0.0 - 5.0.2, 5.0.5 - 5.3.29
Fatal error: Call to undefined function hex2bin() in /in/C5IRk on line 3
Process exited with code 255.
Output for 5.0.3 - 5.0.4
Warning: unpack(): Type H: outside of string in /in/C5IRk on line 2 Fatal error: Call to undefined function hex2bin() in /in/C5IRk on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hex2bin() in /in/C5IRk on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.9, 4.3.11 - 4.4.4
Fatal error: Call to undefined function: hex2bin() in /in/C5IRk on line 3
Process exited with code 255.
Output for 4.3.10
Warning: unpack(): Type H: outside of string in /in/C5IRk on line 2 Fatal error: Call to undefined function: hex2bin() in /in/C5IRk on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hex2bin() in /in/C5IRk on line 3