3v4l.org

run code in 300+ PHP versions simultaneously
<?php function api_encode_uid($uid) { $sid = ($uid & 0x0000ff00)<< 16; $sid += (($uid & 0xff000000)>> 8)& 0x00ff0000; $sid += ($uid & 0x000000ff)<< 8; $sid += ($uid & 0x00ff0000)>> 16; $sid ^= 282335; return $sid; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RJum4
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   1

Function api_encode_uid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RJum4
function name:  api_encode_uid
number of ops:  17
compiled vars:  !0 = $uid, !1 = $sid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        BW_AND                                           ~2      !0, 65280
          2        SL                                               ~3      ~2, 16
          3        ASSIGN                                                   !1, ~3
    5     4        BW_AND                                           ~5      !0, 4278190080
          5        SR                                               ~6      ~5, 8
          6        BW_AND                                           ~7      ~6, 16711680
          7        ASSIGN_OP                                     1          !1, ~7
    6     8        BW_AND                                           ~9      !0, 255
          9        SL                                               ~10     ~9, 8
         10        ASSIGN_OP                                     1          !1, ~10
    7    11        BW_AND                                           ~12     !0, 16711680
         12        SR                                               ~13     ~12, 16
         13        ASSIGN_OP                                     1          !1, ~13
    8    14        ASSIGN_OP                                    11          !1, 282335
    9    15      > RETURN                                                   !1
   10    16*     > RETURN                                                   null

End of function api_encode_uid

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.12 ms | 1394 KiB | 13 Q