3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.29 ms | 1394 KiB | 13 Q