3v4l.org

run code in 300+ PHP versions simultaneously
<?php function numhash($n) { return (((0x0000FFFF & $n) << 16) + ((0xFFFF0000 & $n) >> 16)); } echo numhash(5); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q9NDi
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'numhash'
          1        SEND_VAL                                                 5
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   11     4      > RETURN                                                   1

Function numhash:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q9NDi
function name:  numhash
number of ops:  8
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        BW_AND                                           ~1      !0, 65535
          2        SL                                               ~2      ~1, 16
          3        BW_AND                                           ~3      !0, 4294901760
          4        SR                                               ~4      ~3, 16
          5        ADD                                              ~5      ~2, ~4
          6      > RETURN                                                   ~5
    5     7*     > RETURN                                                   null

End of function numhash

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.82 ms | 1401 KiB | 14 Q