3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SERVER["REQUEST_METHOD"] = 'GET'; $id = '123'; 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 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/2iiYk
function name:  (null)
number of ops:  13
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        ASSIGN                                                   !0, '123'
    6     4        FETCH_R                      global              ~4      '_SERVER'
          5        FETCH_DIM_R                                      ~5      ~4, 'REQUEST_METHOD'
          6        IS_IDENTICAL                                             ~5, 'GET'
          7      > JMPZ                                                     ~6, ->9
    7     8    >   ASSIGN                                                   !0, ''
   11     9    >   ECHO                                                     '%0A%3Cmeta+property%3D%27og%3Aurl%27+content%3D%22http%3A%2F%2Fwww.example.com%2Fpage.php%3Fid%3D'
   12    10        ECHO                                                     !0
         11        ECHO                                                     '%22+%2F%3E'
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.17 ms | 1384 KiB | 13 Q