3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qP9sV
function name:  (null)
number of ops:  27
compiled vars:  !0 = $siret, !1 = $binval, !2 = $shifted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'unpack'
          1        SEND_VAL                                                 '13001202400050'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'decbin'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    7    11        INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 'O+%3A+%25b%0A'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    9    15        SR                                               ~9      !1, 8
         16        ASSIGN                                                   !2, ~9
   11    17        INIT_FCALL                                               'printf'
         18        SEND_VAL                                                 'S+%3A+%25b%0A'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
   13    21        INIT_FCALL                                               'printf'
         22        SEND_VAL                                                 'I+%3A+%25b%0A'
         23        SL                                               ~12     !2, 8
         24        SEND_VAL                                                 ~12
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.95 ms | 1395 KiB | 21 Q