3v4l.org

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

Function evalcrosstotal:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/jlQ0i
function name:  evalCrossTotal
number of ops:  17
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, ->13
          8    > > FE_FETCH_R                                               $7, !3, ->13
    8     9    >   ECHO                                                     !3
    9    10        CONCAT                                           ~8      '0x0', !3
         11        ASSIGN_OP                                     1          !1, ~8
    6    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $7
   11    14        ECHO                                                     !1
   12    15      > RETURN                                                   !1
   13    16*     > RETURN                                                   null

End of function evalcrosstotal

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.58 ms | 1399 KiB | 18 Q