3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = str_pad(dechex(18583), 8, "0", STR_PAD_LEFT); $hash = implode(str_split($hash, 2), '/'); $hash2 = substr_replace($hash, 'f', 0, 1); printf("hash = %s, new hash = %s", $hash, $hash2);

preferences:
41.04 ms | 402 KiB | 5 Q