3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.02 ms | 1394 KiB | 15 Q