3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "hello;world;if(blah){blahcode}"; for($i = 0; $i < strlen($input); $i+=1) { switch($input[$i]) { case ";": $input[$i] = $input[$i] . '\n'; break; } } echo $input; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
filename:       /in/lTpOL
function name:  (null)
number of ops:  19
compiled vars:  !0 = $input, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hello%3Bworld%3Bif%28blah%29%7Bblahcode%7D'
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->14
    5     3    >   FETCH_DIM_R                                      ~4      !0, !1
    7     4        CASE                                                     ~4, '%3B'
          5      > JMPNZ                                                    ~5, ->7
          6    > > JMP                                                      ->12
    8     7    >   FETCH_DIM_R                                      ~7      !0, !1
          8        CONCAT                                           ~8      ~7, '%5Cn'
          9        ASSIGN_DIM                                               !0, !1
         10        OP_DATA                                                  ~8
    9    11      > JMP                                                      ->12
         12    >   FREE                                                     ~4
    3    13        ASSIGN_OP                                     1          !1, 1
         14    >   STRLEN                                           ~10     !0
         15        IS_SMALLER                                               !1, ~10
         16      > JMPNZ                                                    ~11, ->3
   12    17    >   ECHO                                                     !0
   13    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.08 ms | 1394 KiB | 13 Q