3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filterString = "R"; $returnVal = ""; $filterLetters = str_split($filterString, 1); for($x = 0; $x < strlen($filterString); $x++) { $returnVal .= "(type <=> '" . "R-filter" . "') OR "; echo $returnVal; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 9
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 9
Branch analysis from position: 15
Branch analysis from position: 9
filename:       /in/6YPF7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $filterString, !1 = $returnVal, !2 = $filterLetters, !3 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'R'
    4     1        ASSIGN                                                   !1, ''
    5     2        INIT_FCALL                                               'str_split'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    6     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->12
    7     9    >   ASSIGN_OP                                     8          !1, '%28type+%3C%3D%3E+%27R-filter%27%29+OR+'
    8    10        ECHO                                                     !1
    6    11        PRE_INC                                                  !3
         12    >   STRLEN                                           ~11     !0
         13        IS_SMALLER                                               !3, ~11
         14      > JMPNZ                                                    ~12, ->9
    9    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.58 ms | 1395 KiB | 15 Q