3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.69 ms | 1395 KiB | 13 Q