3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.43 ms | 1404 KiB | 15 Q