3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(hex2bin('0xe07861bbcaf39ad54a0b85389a9f08886997f8cafffe871b8569c2fcf3293bcc')); var_dump(bin2hex('e07861bbcaf39ad54a0b85389a9f08886997f8cafffe871b8569c2fcf3293bcc'));
Output for 5.5.1 - 5.6.25, 7.0.0 - 7.1.0
Warning: hex2bin(): Input string must be hexadecimal string in /in/Bk5QE on line 3 bool(false) string(128) "65303738363162626361663339616435346130623835333839613966303838383639393766386361666666653837316238353639633266636633323933626363"
Output for hhvm-3.10.0 - 3.12.0
Warning: hex2bin: malformed input in /in/Bk5QE on line 3 bool(false) string(128) "65303738363162626361663339616435346130623835333839613966303838383639393766386361666666653837316238353639633266636633323933626363"
Output for 5.4.0 - 5.5.0
bool(false) string(128) "65303738363162626361663339616435346130623835333839613966303838383639393766386361666666653837316238353639633266636633323933626363"
Output for 5.0.0 - 5.3.29
Fatal error: Call to undefined function hex2bin() in /in/Bk5QE 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/Bk5QE on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hex2bin() in /in/Bk5QE 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/Bk5QE on line 3