3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p=$r=1; ?> <select> <option value=1 <?php $p=$r?"selected":''?>></option>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8YRDY
function name:  (null)
number of ops:  10
compiled vars:  !0 = $p, !1 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                           ~2      !1, 1
          1        ASSIGN                                                   !0, ~2
    4     2        ECHO                                                     '%3Cselect%3E%0A++++%3Coption+value%3D1+'
    5     3      > JMPZ                                                     !1, ->6
          4    >   QM_ASSIGN                                        ~4      'selected'
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~4      ''
          7    >   ASSIGN                                                   !0, ~4
          8        ECHO                                                     '%3E%3C%2Foption%3E'
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.5 ms | 1393 KiB | 13 Q