3v4l.org

run code in 300+ PHP versions simultaneously
<?php function evalCrossTotal($strMD5) { $intTotal = 0; $arrMD5Chars = str_split($strMD5, 1); foreach ($arrMD5Chars as $value) { $intTotal += '0x0'.$value; } return $intTotal; } $test = evalCrossTotal(md5("something")); print $test;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/81a4F
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'evalcrosstotal'
          1        INIT_FCALL                                               'md5'
          2        SEND_VAL                                                 'something'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_FCALL                                      0  $2      
          6        ASSIGN                                                   !0, $2
   13     7        ECHO                                                     !0
          8      > RETURN                                                   1

Function evalcrosstotal:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/81a4F
function name:  evalCrossTotal
number of ops:  15
compiled vars:  !0 = $strMD5, !1 = $intTotal, !2 = $arrMD5Chars, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, 0
    5     2        INIT_FCALL                                               'str_split'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    6     7      > FE_RESET_R                                       $7      !2, ->12
          8    > > FE_FETCH_R                                               $7, !3, ->12
    8     9    >   CONCAT                                           ~8      '0x0', !3
         10        ASSIGN_OP                                     1          !1, ~8
    6    11      > JMP                                                      ->8
         12    >   FE_FREE                                                  $7
   10    13      > RETURN                                                   !1
   11    14*     > RETURN                                                   null

End of function evalcrosstotal

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.3 ms | 1398 KiB | 18 Q