3v4l.org

run code in 300+ PHP versions simultaneously
<?php $BaseID = '1234567890'; $BaseIDHex = dechex($BaseID); $BaseIDHex = strtoupper(strrev($BaseIDHex)); $BaseIDHex = chunk_split($BaseIDHex, 2, ' '); echo $BaseIDHex;

preferences:
26.74 ms | 407 KiB | 5 Q