3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.54 ms | 1400 KiB | 17 Q