3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = ''; for ( $i=0; $i<=5; $i++ ) { $incr = ($i<2) ? $i : $i+3; $txt = ($i<2) ? ((0===$i) ? $starNum=$i : ($starNum=$i) . ' & ' . ($i+1)) : (($starNum=$i)+2) . ' & ' . ($i+3); echo 'Starnum: '.$starNum.' - '.$txt."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 3
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 24
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 3
Branch analysis from position: 39
Branch analysis from position: 3
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 3
Branch analysis from position: 39
Branch analysis from position: 3
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 24
Branch analysis from position: 12
Branch analysis from position: 24
filename:       /in/7kmTd
function name:  (null)
number of ops:  40
compiled vars:  !0 = $txt, !1 = $i, !2 = $incr, !3 = $starNum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->37
    5     3    >   IS_SMALLER                                               !1, 2
          4      > JMPZ                                                     ~6, ->7
          5    >   QM_ASSIGN                                        ~7      !1
          6      > JMP                                                      ->9
          7    >   ADD                                              ~8      !1, 3
          8        QM_ASSIGN                                        ~7      ~8
          9    >   ASSIGN                                                   !2, ~7
    6    10        IS_SMALLER                                               !1, 2
         11      > JMPZ                                                     ~10, ->24
         12    >   IS_IDENTICAL                                             !1, 0
         13      > JMPZ                                                     ~11, ->17
         14    >   ASSIGN                                           ~12     !3, !1
         15        QM_ASSIGN                                        ~13     ~12
         16      > JMP                                                      ->22
         17    >   ASSIGN                                           ~14     !3, !1
         18        CONCAT                                           ~15     ~14, '+%26+'
         19        ADD                                              ~16     !1, 1
         20        CONCAT                                           ~17     ~15, ~16
         21        QM_ASSIGN                                        ~13     ~17
         22    >   QM_ASSIGN                                        ~18     ~13
         23      > JMP                                                      ->30
         24    >   ASSIGN                                           ~19     !3, !1
         25        ADD                                              ~20     ~19, 2
         26        CONCAT                                           ~21     ~20, '+%26+'
         27        ADD                                              ~22     !1, 3
         28        CONCAT                                           ~23     ~21, ~22
         29        QM_ASSIGN                                        ~18     ~23
         30    >   ASSIGN                                                   !0, ~18
    7    31        CONCAT                                           ~25     'Starnum%3A+', !3
         32        CONCAT                                           ~26     ~25, '+-+'
         33        CONCAT                                           ~27     ~26, !0
         34        CONCAT                                           ~28     ~27, '%0A'
         35        ECHO                                                     ~28
    4    36        PRE_INC                                                  !1
         37    >   IS_SMALLER_OR_EQUAL                                      !1, 5
         38      > JMPNZ                                                    ~30, ->3
    8    39    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.7 ms | 1399 KiB | 13 Q