3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1 = ""; $var2 = ""; $var3 = "x"; $list = ""; $list = ($var1 == "")?('Var 1 Empty'):(""); echo "List:".$list.$var1."\n"; $list = ($list.$var2 == "")?('Var 2 Empty'):(""); echo "List:".$list.$var2."\n"; $list = ($list.$var3 == "")?('Var 3 Empty'):(""); echo "List:".$list.$var3."\n"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
Branch analysis from position: 30
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Branch analysis from position: 19
filename:       /in/11one
function name:  (null)
number of ops:  37
compiled vars:  !0 = $var1, !1 = $var2, !2 = $var3, !3 = $list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, ''
    5     2        ASSIGN                                                   !2, 'x'
    7     3        ASSIGN                                                   !3, ''
    8     4        IS_EQUAL                                                 !0, ''
          5      > JMPZ                                                     ~8, ->8
          6    >   QM_ASSIGN                                        ~9      'Var+1+Empty'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~9      ''
          9    >   ASSIGN                                                   !3, ~9
    9    10        CONCAT                                           ~11     'List%3A', !3
         11        CONCAT                                           ~12     ~11, !0
         12        CONCAT                                           ~13     ~12, '%0A'
         13        ECHO                                                     ~13
   10    14        CONCAT                                           ~14     !3, !1
         15        IS_EQUAL                                                 ~14, ''
         16      > JMPZ                                                     ~15, ->19
         17    >   QM_ASSIGN                                        ~16     'Var+2+Empty'
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~16     ''
         20    >   ASSIGN                                                   !3, ~16
   11    21        CONCAT                                           ~18     'List%3A', !3
         22        CONCAT                                           ~19     ~18, !1
         23        CONCAT                                           ~20     ~19, '%0A'
         24        ECHO                                                     ~20
   12    25        CONCAT                                           ~21     !3, !2
         26        IS_EQUAL                                                 ~21, ''
         27      > JMPZ                                                     ~22, ->30
         28    >   QM_ASSIGN                                        ~23     'Var+3+Empty'
         29      > JMP                                                      ->31
         30    >   QM_ASSIGN                                        ~23     ''
         31    >   ASSIGN                                                   !3, ~23
   13    32        CONCAT                                           ~25     'List%3A', !3
         33        CONCAT                                           ~26     ~25, !2
         34        CONCAT                                           ~27     ~26, '%0A'
         35        ECHO                                                     ~27
   14    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.42 ms | 1399 KiB | 13 Q