3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = array('test'=>1, 'test2'=>2); if ($var) { ?> <span><?=$var['test']?></span> <?php } else { ?> <span><?=$var['test2']?></span> <?php }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HbmmQ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > JMPZ                                                     !0, ->7
    5     2    >   ECHO                                                     '%09%3Cspan%3E'
          3        FETCH_DIM_R                                      ~2      !0, 'test'
          4        ECHO                                                     ~2
          5        ECHO                                                     '%3C%2Fspan%3E%0A'
          6      > JMP                                                      ->11
    7     7    >   ECHO                                                     '%09%3Cspan%3E'
          8        FETCH_DIM_R                                      ~3      !0, 'test2'
          9        ECHO                                                     ~3
         10        ECHO                                                     '%3C%2Fspan%3E%0A'
    8    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.35 ms | 1397 KiB | 13 Q