3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

preferences:
46.74 ms | 407 KiB | 5 Q