@ 2016-03-24T10:57:33Z <?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);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught ArgumentCountError: unpack() expects at least 2 arguments, 1 given in /in/qP9sV:3
Stack trace:
#0 /in/qP9sV(3): unpack('13001202400050')
#1 {main}
thrown in /in/qP9sV on line 3
Process exited with code 255 . Output for 7.1.0 - 7.1.25 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 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 - 5.5.35 , 5.6.0 - 5.6.28 , 7.0.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
preferences:dark mode live preview
176.87 ms | 402 KiB | 229 Q