3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = sha1(""); $data = 9856748; $i = 0; $str = ""; while ($i < strlen($key)) { if (strpos($str, $key[$i]) === false) { $str .= $key[$i]; } $i++; } unset($key);$key = $str;unset($str);unset($i); $i = 0; $str = $data.""; $rtn = ""; while ($i < strlen($str)) { $rtn .= substr($key,$str[$i],1); $i++; } echo $rtn;
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 = 8
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 30
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 30
Branch analysis from position: 41
Branch analysis from position: 30
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
Branch analysis from position: 8
Branch analysis from position: 17
filename:       /in/b0RSB
function name:  (null)
number of ops:  43
compiled vars:  !0 = $key, !1 = $data, !2 = $i, !3 = $str, !4 = $rtn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'sha1'
          1        SEND_VAL                                                 ''
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    3     4        ASSIGN                                                   !1, 9856748
    4     5        ASSIGN                                                   !2, 0
    5     6        ASSIGN                                                   !3, ''
    6     7      > JMP                                                      ->18
    7     8    >   INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !3
         10        FETCH_DIM_R                                      ~10     !0, !2
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                         $11     
         13        TYPE_CHECK                                    4          $11
         14      > JMPZ                                                     ~12, ->17
    8    15    >   FETCH_DIM_R                                      ~13     !0, !2
         16        ASSIGN_OP                                     8          !3, ~13
   10    17    >   PRE_INC                                                  !2
    6    18    >   STRLEN                                           ~16     !0
         19        IS_SMALLER                                               !2, ~16
         20      > JMPNZ                                                    ~17, ->8
   12    21    >   UNSET_CV                                                 !0
         22        ASSIGN                                                   !0, !3
         23        UNSET_CV                                                 !3
         24        UNSET_CV                                                 !2
   13    25        ASSIGN                                                   !2, 0
   14    26        CONCAT                                           ~20     !1, ''
         27        ASSIGN                                                   !3, ~20
   15    28        ASSIGN                                                   !4, ''
   16    29      > JMP                                                      ->38
   17    30    >   INIT_FCALL                                               'substr'
         31        SEND_VAR                                                 !0
         32        FETCH_DIM_R                                      ~23     !3, !2
         33        SEND_VAL                                                 ~23
         34        SEND_VAL                                                 1
         35        DO_ICALL                                         $24     
         36        ASSIGN_OP                                     8          !4, $24
   18    37        PRE_INC                                                  !2
   16    38    >   STRLEN                                           ~27     !3
         39        IS_SMALLER                                               !2, ~27
         40      > JMPNZ                                                    ~28, ->30
   20    41    >   ECHO                                                     !4
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.97 ms | 1400 KiB | 19 Q