3v4l.org

run code in 500+ PHP versions simultaneously
<?php $feed = new StdClass; $feed->name = 'foo'; $feed->url = 'bar'; $html = <<<HTML onclick="javascript:modify_feed('$feed->name','$feed->url');" HTML; echo $html;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZFBnS
function name:  (null)
number of ops:  17
compiled vars:  !0 = $feed, !1 = $html
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, 'name'
          4        OP_DATA                                                      'foo'
    4     5        ASSIGN_OBJ                                                   !0, 'url'
          6        OP_DATA                                                      'bar'
    6     7        ROPE_INIT                                         5  ~10     '++++onclick%3D%22javascript%3Amodify_feed%28%27'
          8        FETCH_OBJ_R                                          ~7      !0, 'name'
          9        ROPE_ADD                                          1  ~10     ~10, ~7
         10        ROPE_ADD                                          2  ~10     ~10, '%27%2C%27'
         11        FETCH_OBJ_R                                          ~8      !0, 'url'
         12        ROPE_ADD                                          3  ~10     ~10, ~8
         13        ROPE_END                                          4  ~9      ~10, '%27%29%3B%22'
    5    14        ASSIGN                                                       !1, ~9
    8    15        ECHO                                                         !1
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
193.5 ms | 2839 KiB | 13 Q