3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hex = hex2bin("6578616d706c65206865782064617461"); var_dump($hex); ?>
Output for 5.4.0 - 7.1.0
string(16) "example hex data"
Output for 5.0.0 - 5.3.29
Fatal error: Call to undefined function hex2bin() in /in/0J0Y5 on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hex2bin() in /in/0J0Y5 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hex2bin() in /in/0J0Y5 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hex2bin() in /in/0J0Y5 on line 2