3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'value="1,\'goahead\'" your=\'56\' so=\'"<br />"\''; $DOM = new DOMDocument; $DOM->loadHTML($str); var_dump($DOM->hasAttributes());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y1nG7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $DOM
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'value%3D%221%2C%27goahead%27%22+your%3D%2756%27+so%3D%27%22%3Cbr+%2F%3E%22%27'
    3     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    4     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !1, 'hasAttributes'
          9        DO_FCALL                                      0  $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.22 ms | 1394 KiB | 15 Q