3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = md5("abcdefg"); $i = 0; $str = ""; while ($i < strlen($key)) { if (strpos($str, $key[$i]) === false) { $str .= $key[$i]; } $i++; } echo $rtn;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
Branch analysis from position: 7
Branch analysis from position: 16
filename:       /in/luRvC
function name:  (null)
number of ops:  22
compiled vars:  !0 = $key, !1 = $i, !2 = $str, !3 = $rtn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'md5'
          1        SEND_VAL                                                 'abcdefg'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        ASSIGN                                                   !1, 0
    4     5        ASSIGN                                                   !2, ''
    5     6      > JMP                                                      ->17
    6     7    >   INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !2
          9        FETCH_DIM_R                                      ~8      !0, !1
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                         $9      
         12        TYPE_CHECK                                    4          $9
         13      > JMPZ                                                     ~10, ->16
    7    14    >   FETCH_DIM_R                                      ~11     !0, !1
         15        ASSIGN_OP                                     8          !2, ~11
    9    16    >   PRE_INC                                                  !1
    5    17    >   STRLEN                                           ~14     !0
         18        IS_SMALLER                                               !1, ~14
         19      > JMPNZ                                                    ~15, ->7
   11    20    >   ECHO                                                     !3
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.07 ms | 1395 KiB | 17 Q