3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $siret = unpack('13001202400050'); var_dump($siret); $binval = decbin($siret); printf('O : %b' . PHP_EOL, $binval); $shifted = $binval >> 8; printf('S : %b' . PHP_EOL, $shifted); printf('I : %b' . PHP_EOL, $shifted << 8);
based on 41tTU
Output for 7.1.0 - 7.3.0rc3
Warning: unpack() expects at least 2 parameters, 1 given in /in/qP9sV on line 3 NULL O : 0 S : 0 I : 0
Output for 5.5.0 - 7.0.20
Warning: unpack() expects exactly 2 parameters, 1 given in /in/qP9sV on line 3 NULL O : 0 S : 0 I : 0