3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = ""; $allowed_chars = array_fill_keys(range('A-Za-z0-9'), "a"); $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 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 12
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 25
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 12
Branch analysis from position: 47
Branch analysis from position: 12
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 43
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 43
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 12
Branch analysis from position: 47
Branch analysis from position: 12
Branch analysis from position: 43
Branch analysis from position: 43
filename:       /in/U4vKT
function name:  (null)
number of ops:  49
compiled vars:  !0 = $o, !1 = $allowed_chars, !2 = $string, !3 = $i, !4 = $ch, !5 = $escape_char
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        INIT_FCALL                                               'array_fill_keys'
          2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 'A-Za-z0-9'
          4        DO_ICALL                                         $7      
          5        SEND_VAR                                                 $7
          6        SEND_VAL                                                 'a'
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !1, $8
    5     9        ASSIGN                                                   !2, 'hzgtfrzutrdetzttedcuztivcretfuzrtzt'
    6    10        ASSIGN                                                   !3, 0
         11      > JMP                                                      ->44
    7    12    >   FETCH_DIM_R                                      ~12     !2, !3
         13        ASSIGN                                                   !4, ~12
    9    14        INIT_FCALL                                               'ord'
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                         $14     
         17        ISSET_ISEMPTY_DIM_OBJ                         0          !1, $14
         18      > JMPZ                                                     ~15, ->25
   10    19    >   INIT_FCALL                                               'ord'
         20        SEND_VAR                                                 !4
         21        DO_ICALL                                         $16     
         22        FETCH_DIM_R                                      ~17     !1, $16
         23        ASSIGN_OP                                     8          !0, ~17
         24      > JMP                                                      ->43
   11    25    >   INIT_FCALL                                               'ord'
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                         $19     
         28        IS_EQUAL                                                 $19, 27
         29      > JMPZ                                                     ~20, ->43
   12    30    >   PRE_INC                                                  !3
   13    31        FETCH_DIM_R                                      ~22     !2, !3
         32        ASSIGN                                                   !4, ~22
   14    33        INIT_FCALL                                               'ord'
         34        SEND_VAR                                                 !4
         35        DO_ICALL                                         $24     
         36        ISSET_ISEMPTY_DIM_OBJ                         0          !5, $24
         37      > JMPZ                                                     ~25, ->43
   15    38    >   INIT_FCALL                                               'ord'
         39        SEND_VAR                                                 !4
         40        DO_ICALL                                         $26     
         41        FETCH_DIM_R                                      ~27     !5, $26
         42        ASSIGN_OP                                     8          !0, ~27
    6    43    >   PRE_INC                                                  !3
         44    >   STRLEN                                           ~30     !2
         45        IS_SMALLER                                               !3, ~30
         46      > JMPNZ                                                    ~31, ->12
   19    47    >   ECHO                                                     !0
         48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.96 ms | 1400 KiB | 19 Q