3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $uuid = '550e8400-e29b-41d4-a716-446655440000'; $uuid = str_replace('-', '', $uuid); $uuid = hex2bin($uuid); $uuid = base64_encode($uuid); $uuid = str_replace('=', '', $uuid); var_dump($uuid);
based on MvSAl
Output for 5.4.0 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.1
string(22) "VQ6EAOKbQdSnFkRmVUQAAA"
Output for 5.0.0 - 5.3.29
Fatal error: Call to undefined function hex2bin() in /in/9h4p2 on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hex2bin() in /in/9h4p2 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hex2bin() in /in/9h4p2 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hex2bin() in /in/9h4p2 on line 4