3v4l.org

run code in 300+ PHP versions simultaneously
<?php $src = '000080c0'; $arr = array_map('hexdec', str_split($src, 2)); $float = unpack('f', pack("C*", ...$arr)); var_dump($float); // float(-4)

preferences:
29.41 ms | 408 KiB | 5 Q