3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hash = str_pad(dechex(18583), 8, "0", STR_PAD_LEFT); $hash2 = substr_replace($hash, 'f', 0, 1); printf("hash = %s, new hash = %s", $hash, $hash2);
Output for 4.3.0 - 7.1.0
hash = 00004897, new hash = f0004897