3v4l.org

run code in 300+ PHP versions simultaneously
<?php function XXhex2bin($h) { if (!is_string($h)) return null; $r=''; for ($a=0; $a<strlen($h); $a+=2) { $r.=chr(hexdec($h{$a}.$h{($a+1)})); } return $r; } $encoded = bin2hex(' '); echo "0x".$encoded; ?>

This is an error 404

There are `0` results


preferences:
138.01 ms | 1390 KiB | 7 Q