3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = str_split('pierwszy string { drugi string|trzeci string {czwarty string|piąty string}} szósty string {{ósmy string| dziewiąty string} dziesiąty string}{jedenasty string| dwunasty string} trzynasty string', 1); $a = array(); $c = $a[] = ''; foreach ( $string as $val ) { switch ( $val ) { case '{': // kod break; case '|': // kod break; case '}': //kod break; default: $c .= $val; break; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 25
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 25
Branch analysis from position: 11
5 jumps found. (Code = 188) Position 1 = 19, Position 2 = 20, Position 3 = 21, Position 4 = 22, Position 5 = 12
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 21
Branch analysis from position: 20
Branch analysis from position: 19
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/vnGe4
function name:  (null)
number of ops:  27
compiled vars:  !0 = $string, !1 = $a, !2 = $c, !3 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_split'
          1        SEND_VAL                                                 'pierwszy+string+%7B+drugi+string%7Ctrzeci+string+%7Bczwarty+string%7Cpi%C4%85ty+string%7D%7D+sz%C3%B3sty+string+%7B%7B%C3%B3smy+string%7C+dziewi%C4%85ty+string%7D+dziesi%C4%85ty+string%7D%7Bjedenasty+string%7C+dwunasty+string%7D+trzynasty+string'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    3     5        ASSIGN                                                   !1, <array>
    4     6        ASSIGN_DIM                                       ~7      !1
          7        OP_DATA                                                  ''
          8        ASSIGN                                                   !2, ~7
    5     9      > FE_RESET_R                                       $9      !0, ->25
         10    > > FE_FETCH_R                                               $9, !3, ->25
    7    11    > > SWITCH_STRING                                            !3, [ '%7B':->19, '%7C':->20, '%7D':->21, ], ->22
    9    12    >   IS_EQUAL                                                 !3, '%7B'
         13      > JMPNZ                                                    ~10, ->19
   12    14    >   IS_EQUAL                                                 !3, '%7C'
         15      > JMPNZ                                                    ~10, ->20
   15    16    >   IS_EQUAL                                                 !3, '%7D'
         17      > JMPNZ                                                    ~10, ->21
         18    > > JMP                                                      ->22
   11    19    > > JMP                                                      ->24
   14    20    > > JMP                                                      ->24
   17    21    > > JMP                                                      ->24
   19    22    >   ASSIGN_OP                                     8          !2, !3
   20    23      > JMP                                                      ->24
    5    24    > > JMP                                                      ->10
         25    >   FE_FREE                                                  $9
   22    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.84 ms | 1400 KiB | 15 Q