3v4l.org

run code in 300+ PHP versions simultaneously
$variable = 'VALOR'; <option value="opcion" <?php if ($variable=='VALOR') echo 'selected' ?>>VALOR</option>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/mJFQd
function name:  (null)
number of ops:  6
compiled vars:  !0 = $variable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%24variable+%3D+%27VALOR%27%3B%0A%0A%3Coption+value%3D%22opcion%22+'
    3     1        IS_EQUAL                                                 !0, 'VALOR'
          2      > JMPZ                                                     ~1, ->4
          3    >   ECHO                                                     'selected'
          4    >   ECHO                                                     '%3EVALOR%3C%2Foption%3E'
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.52 ms | 1392 KiB | 13 Q