3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo uRShift(1, 1026244653); function uRShift($a, $b) { $z = hexdec(80000000); if ($z & $a) { $a = ($a << 1); $a &= (~$z); $a |= 0x40000000; $a = ($a >> ($b - 1)); } else { $a = ($a << $b); } return $a; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lm0V5
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'uRShift'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              1026244653
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
   18     5      > RETURN                                                   1

Function urshift:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lm0V5
function name:  uRShift
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        INIT_FCALL                                               'hexdec'
          3        SEND_VAL                                                 80000000
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !2, $3
    8     6        BW_AND                                           ~5      !2, !0
          7      > JMPZ                                                     ~5, ->17
   10     8    >   SL                                               ~6      !0, 1
          9        ASSIGN                                                   !0, ~6
   11    10        BW_NOT                                           ~8      !2
         11        ASSIGN_OP                                    10          !0, ~8
   12    12        ASSIGN_OP                                     9          !0, 1073741824
   13    13        SUB                                              ~11     !1, 1
         14        SR                                               ~12     !0, ~11
         15        ASSIGN                                                   !0, ~12
         16      > JMP                                                      ->19
   15    17    >   SL                                               ~14     !0, !1
         18        ASSIGN                                                   !0, ~14
   17    19    > > RETURN                                                   !0
   18    20*     > RETURN                                                   null

End of function urshift

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.63 ms | 1396 KiB | 15 Q