3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function hex($me){ for($_i = 0; $_i < strlen($me); $_i += 2){ $w = substr($me, $_i, ($_i + 2)); print $w; } } $string = "1b2f190ad705d7c2afcac45447a31b053fada0c4"; hex($string);
Output for 5.6.0 - 5.6.38, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.3.1
1b2f19190ad70ad705d7d705d7c2af05d7c2afcac4d7c2afcac45447c2afcac45447a31bafcac45447a31b053fcac45447a31b053fada0c45447a31b053fada0c45447a31b053fada0c447a31b053fada0c4a31b053fada0c41b053fada0c4053fada0c43fada0c4ada0c4a0c4c4