3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = new stdClass(); $result->id = 333; $result->title = 'title text'; echo <<<HTML <a href="index.php?option=com_rbids&task=viewbids&id={<?php echo $id; ?>}">$result->title . </a> HTML; // Notice that $id isn't a declared variable. If it was, it would be rendered but all characters between the curly braces are treated literally because you are trying to echo within an echo echo "\n---\n"; // without heredoc syntax (which can be funny about tabbing depending on php version): echo "<a href=\"index.php?option=com_rbids&task=viewbids&id={$result->id}\">{$result->title} . </a>"; // curly braces may help IDEs with highlighting
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s1YZG
function name:  (null)
number of ops:  24
compiled vars:  !0 = $result, !1 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        ASSIGN_OBJ                                               !0, 'id'
          4        OP_DATA                                                  333
    4     5        ASSIGN_OBJ                                               !0, 'title'
          6        OP_DATA                                                  'title+text'
    7     7        ROPE_INIT                                     5  ~9      '%3Ca+href%3D%22index.php%3Foption%3Dcom_rbids%26task%3Dviewbids%26id%3D%7B%3C%3Fphp+echo+'
          8        ROPE_ADD                                      1  ~9      ~9, !1
          9        ROPE_ADD                                      2  ~9      ~9, '%3B+%3F%3E%7D%22%3E'
         10        FETCH_OBJ_R                                      ~7      !0, 'title'
         11        ROPE_ADD                                      3  ~9      ~9, ~7
         12        ROPE_END                                      4  ~8      ~9, '+.+%3C%2Fa%3E'
         13        ECHO                                                     ~8
   12    14        ECHO                                                     '%0A---%0A'
   16    15        ROPE_INIT                                     5  ~15     '%3Ca+href%3D%22index.php%3Foption%3Dcom_rbids%26task%3Dviewbids%26id%3D'
         16        FETCH_OBJ_R                                      ~12     !0, 'id'
         17        ROPE_ADD                                      1  ~15     ~15, ~12
         18        ROPE_ADD                                      2  ~15     ~15, '%22%3E'
         19        FETCH_OBJ_R                                      ~13     !0, 'title'
         20        ROPE_ADD                                      3  ~15     ~15, ~13
         21        ROPE_END                                      4  ~14     ~15, '+.+%3C%2Fa%3E'
         22        ECHO                                                     ~14
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.09 ms | 1007 KiB | 13 Q