3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.1 ms | 1395 KiB | 15 Q