3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo base64_encode(pack('H*','2d0f5da0-46ee-11e4-acd2-0002a5d5c51b'));
based on WTcLh
Output for 4.3.2 - 7.1.0
Warning: pack(): Type H: illegal hex digit - in /in/iZmGf on line 2 Warning: pack(): Type H: illegal hex digit - in /in/iZmGf on line 2 Warning: pack(): Type H: illegal hex digit - in /in/iZmGf on line 2 Warning: pack(): Type H: illegal hex digit - in /in/iZmGf on line 2 LQ9doARu4BHkCs0gAAKl1cUb
Output for 4.3.0 - 4.3.1
Warning: pack() [http://www.php.net/function.pack]: Type H: illegal hex digit - in /in/iZmGf on line 2 Warning: pack() [http://www.php.net/function.pack]: Type H: illegal hex digit - in /in/iZmGf on line 2 Warning: pack() [http://www.php.net/function.pack]: Type H: illegal hex digit - in /in/iZmGf on line 2 Warning: pack() [http://www.php.net/function.pack]: Type H: illegal hex digit - in /in/iZmGf on line 2 LQ9doARu4BHkCs0gAAKl1cUb