3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = 5381; $value = strtoupper('senvvp'); for($i = 0; $i < strlen($value); $i++) { $hash = (leftShift32($hash, 5) + $hash) + ord(substr($value, $i)); } return $hash; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 7
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 7
Branch analysis from position: 25
Branch analysis from position: 7
filename:       /in/utqlo
function name:  (null)
number of ops:  27
compiled vars:  !0 = $hash, !1 = $value, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 5381
    3     1        INIT_FCALL                                               'strtoupper'
          2        SEND_VAL                                                 'senvvp'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    4     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->22
    5     7    >   INIT_FCALL_BY_NAME                                       'leftShift32'
          8        SEND_VAR_EX                                              !0
          9        SEND_VAL_EX                                              5
         10        DO_FCALL                                      0  $7      
         11        ADD                                              ~8      $7, !0
         12        INIT_FCALL                                               'ord'
         13        INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $9      
         17        SEND_VAR                                                 $9
         18        DO_ICALL                                         $10     
         19        ADD                                              ~11     ~8, $10
         20        ASSIGN                                                   !0, ~11
    4    21        PRE_INC                                                  !2
         22    >   STRLEN                                           ~14     !1
         23        IS_SMALLER                                               !2, ~14
         24      > JMPNZ                                                    ~15, ->7
    7    25    > > RETURN                                                   !0
    9    26*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.97 ms | 1395 KiB | 19 Q