3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function from_little_uint16_t(string $i): int { $arr = unpack ( 'vuint16_t', $i ); return $arr ['uint16_t']; } $i=from_little_uint16_t(hex2bin("3703")); var_dump($i);
based on OaPAE
Output for 7.0.0 - 7.3.0rc3
int(823)
Output for 5.5.0 - 5.6.28
Parse error: syntax error, unexpected ':', expecting '{' in /in/V6vri on line 3
Process exited with code 255.