3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hex($me){ for($_i = 0; $_i < strlen($me); $_i += 2){ $w = substr($me, $_i, ($_i + 2)); print $w; } } $string = "1b2f190ad705d7c2afcac45447a31b053fada0c4"; hex($string);

preferences:
31.49 ms | 402 KiB | 5 Q