3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "hello;world;if(blah){blahcode}"; for($i = 0; i < $input.length(); $i+=1) { switch($input[i]) { case ";": $input[i] += '\n'; break; } } ?>
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 = 20, Position 2 = 3
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
Branch analysis from position: 3
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
filename:       /in/qoAmm
function name:  (null)
number of ops:  21
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_CONSTANT                                   ~4      'i'
          4        FETCH_DIM_R                                      ~5      !0, ~4
    7     5        CASE                                                     ~5, '%3B'
          6      > JMPNZ                                                    ~6, ->8
          7    > > JMP                                                      ->12
    8     8    >   FETCH_CONSTANT                                   ~7      'i'
          9        ASSIGN_DIM_OP                +=               1          !0, ~7
         10        OP_DATA                                                  '%5Cn'
    9    11      > JMP                                                      ->12
         12    >   FREE                                                     ~5
    3    13        ASSIGN_OP                                     1          !1, 1
         14    >   FETCH_CONSTANT                                   ~10     'i'
         15        INIT_FCALL_BY_NAME                                       'length'
         16        DO_FCALL                                      0  $11     
         17        CONCAT                                           ~12     !0, $11
         18        IS_SMALLER                                               ~10, ~12
         19      > JMPNZ                                                    ~13, ->3
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.44 ms | 1394 KiB | 13 Q