3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SERVER["REQUEST_METHOD"] = 'GET'; $id = $_SERVER["REQUEST_METHOD"]; if($_SERVER["REQUEST_METHOD"] === "GET") { $id= ''; } ?> <meta property='og:url' content="http://www.example.com/page.php?id=<?php echo $id;?>" />
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/f51oC
function name:  (null)
number of ops:  15
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $1      '_SERVER'
          1        ASSIGN_DIM                                               $1, 'REQUEST_METHOD'
          2        OP_DATA                                                  'GET'
    5     3        FETCH_R                      global              ~3      '_SERVER'
          4        FETCH_DIM_R                                      ~4      ~3, 'REQUEST_METHOD'
          5        ASSIGN                                                   !0, ~4
    6     6        FETCH_R                      global              ~6      '_SERVER'
          7        FETCH_DIM_R                                      ~7      ~6, 'REQUEST_METHOD'
          8        IS_IDENTICAL                                             ~7, 'GET'
          9      > JMPZ                                                     ~8, ->11
    7    10    >   ASSIGN                                                   !0, ''
   11    11    >   ECHO                                                     '%0A%3Cmeta+property%3D%27og%3Aurl%27+content%3D%22http%3A%2F%2Fwww.example.com%2Fpage.php%3Fid%3D'
   12    12        ECHO                                                     !0
         13        ECHO                                                     '%22+%2F%3E'
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148 ms | 1393 KiB | 13 Q