3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = ""; $escape_char = $allowed_chars = array(); $string = "hzgtfrzutrdetzttedcuztivcretfuzrtzt"; for ($i = 0; $i < strlen($string); $i++) { $ch = $string[$i]; if (isset($allowed_chars[ord($ch)])) { $o.=$allowed_chars[ord($ch)]; } else if (ord($ch) == 27) { $i++; $ch = $string[$i]; if (isset($escape_char[ord($ch)])) { $o.=$escape_char[ord($ch)]; } } } echo $o;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 6
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 6
Branch analysis from position: 41
Branch analysis from position: 6
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 37
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 37
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 6
Branch analysis from position: 41
Branch analysis from position: 6
Branch analysis from position: 37
Branch analysis from position: 37
filename:       /in/cqdpk
function name:  (null)
number of ops:  43
compiled vars:  !0 = $o, !1 = $escape_char, !2 = $allowed_chars, !3 = $string, !4 = $i, !5 = $ch
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                           ~7      !2, <array>
          2        ASSIGN                                                   !1, ~7
    5     3        ASSIGN                                                   !3, 'hzgtfrzutrdetzttedcuztivcretfuzrtzt'
    6     4        ASSIGN                                                   !4, 0
          5      > JMP                                                      ->38
    7     6    >   FETCH_DIM_R                                      ~11     !3, !4
          7        ASSIGN                                                   !5, ~11
    9     8        INIT_FCALL                                               'ord'
          9        SEND_VAR                                                 !5
         10        DO_ICALL                                         $13     
         11        ISSET_ISEMPTY_DIM_OBJ                         0          !2, $13
         12      > JMPZ                                                     ~14, ->19
   10    13    >   INIT_FCALL                                               'ord'
         14        SEND_VAR                                                 !5
         15        DO_ICALL                                         $15     
         16        FETCH_DIM_R                                      ~16     !2, $15
         17        ASSIGN_OP                                     8          !0, ~16
         18      > JMP                                                      ->37
   11    19    >   INIT_FCALL                                               'ord'
         20        SEND_VAR                                                 !5
         21        DO_ICALL                                         $18     
         22        IS_EQUAL                                                 $18, 27
         23      > JMPZ                                                     ~19, ->37
   12    24    >   PRE_INC                                                  !4
   13    25        FETCH_DIM_R                                      ~21     !3, !4
         26        ASSIGN                                                   !5, ~21
   14    27        INIT_FCALL                                               'ord'
         28        SEND_VAR                                                 !5
         29        DO_ICALL                                         $23     
         30        ISSET_ISEMPTY_DIM_OBJ                         0          !1, $23
         31      > JMPZ                                                     ~24, ->37
   15    32    >   INIT_FCALL                                               'ord'
         33        SEND_VAR                                                 !5
         34        DO_ICALL                                         $25     
         35        FETCH_DIM_R                                      ~26     !1, $25
         36        ASSIGN_OP                                     8          !0, ~26
    6    37    >   PRE_INC                                                  !4
         38    >   STRLEN                                           ~29     !3
         39        IS_SMALLER                                               !4, ~29
         40      > JMPNZ                                                    ~30, ->6
   19    41    >   ECHO                                                     !0
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171 ms | 1392 KiB | 15 Q