3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SERVER["REQUEST_METHOD"] = 'GET'; $id = ''; echo gettype($_SERVER["REQUEST_METHOD"])." - ".(strlen($_SERVER["REQUEST_METHOD"]))." - ".($_SERVER["REQUEST_METHOD"] == "GET")." - ".($_SERVER["REQUEST_METHOD"] === "GET"); if($_SERVER["REQUEST_METHOD"] === "GET") { $id= 123; } ?> <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 = 27, Position 2 = 28
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/jgVlk
function name:  (null)
number of ops:  32
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, ''
    6     4        FETCH_R                      global              ~4      '_SERVER'
          5        FETCH_DIM_R                                      ~5      ~4, 'REQUEST_METHOD'
          6        GET_TYPE                                         ~6      ~5
          7        CONCAT                                           ~7      ~6, '+-+'
          8        FETCH_R                      global              ~8      '_SERVER'
          9        FETCH_DIM_R                                      ~9      ~8, 'REQUEST_METHOD'
         10        STRLEN                                           ~10     ~9
         11        CONCAT                                           ~11     ~7, ~10
         12        CONCAT                                           ~12     ~11, '+-+'
         13        FETCH_R                      global              ~13     '_SERVER'
         14        FETCH_DIM_R                                      ~14     ~13, 'REQUEST_METHOD'
         15        IS_EQUAL                                         ~15     ~14, 'GET'
         16        CONCAT                                           ~16     ~12, ~15
         17        CONCAT                                           ~17     ~16, '+-+'
         18        FETCH_R                      global              ~18     '_SERVER'
         19        FETCH_DIM_R                                      ~19     ~18, 'REQUEST_METHOD'
         20        IS_IDENTICAL                                     ~20     ~19, 'GET'
         21        CONCAT                                           ~21     ~17, ~20
         22        ECHO                                                     ~21
    8    23        FETCH_R                      global              ~22     '_SERVER'
         24        FETCH_DIM_R                                      ~23     ~22, 'REQUEST_METHOD'
         25        IS_IDENTICAL                                             ~23, 'GET'
         26      > JMPZ                                                     ~24, ->28
    9    27    >   ASSIGN                                                   !0, 123
   13    28    >   ECHO                                                     '%0A%3Cmeta+property%3D%27og%3Aurl%27+content%3D%22http%3A%2F%2Fwww.example.com%2Fpage.php%3Fid%3D'
   14    29        ECHO                                                     !0
         30        ECHO                                                     '%22+%2F%3E'
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.06 ms | 1395 KiB | 13 Q