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 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 8
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 8
Branch analysis from position: 26
Branch analysis from position: 8
filename:       /in/ai1nj
function name:  (null)
number of ops:  28
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        FETCH_CONSTANT                                   ~4      'senvvp'
          3        SEND_VAL                                                 ~4
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->23
    5     8    >   INIT_FCALL_BY_NAME                                       'leftShift32'
          9        SEND_VAR_EX                                              !0
         10        SEND_VAL_EX                                              5
         11        DO_FCALL                                      0  $8      
         12        ADD                                              ~9      $8, !0
         13        INIT_FCALL                                               'ord'
         14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                         $11     
         20        ADD                                              ~12     ~9, $11
         21        ASSIGN                                                   !0, ~12
    4    22        PRE_INC                                                  !2
         23    >   STRLEN                                           ~15     !1
         24        IS_SMALLER                                               !2, ~15
         25      > JMPNZ                                                    ~16, ->8
    7    26    > > RETURN                                                   !0
    9    27*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.36 ms | 1395 KiB | 19 Q