3v4l.org

run code in 300+ PHP versions simultaneously
<?php $siret = '13001202400050'; $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/41tTU
function name:  (null)
number of ops:  21
compiled vars:  !0 = $siret, !1 = $binval, !2 = $shifted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '13001202400050'
    5     1        INIT_FCALL                                               'decbin'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    7     5        INIT_FCALL                                               'printf'
          6        SEND_VAL                                                 'O+%3A+%25b%0A'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    9     9        SR                                               ~7      !1, 8
         10        ASSIGN                                                   !2, ~7
   11    11        INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 'S+%3A+%25b%0A'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
   13    15        INIT_FCALL                                               'printf'
         16        SEND_VAL                                                 'I+%3A+%25b%0A'
         17        SL                                               ~10     !2, 8
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.93 ms | 1395 KiB | 17 Q