3v4l.org

run code in 500+ PHP versions simultaneously
<?php $doc = new DOMDocument(); $doc->loadHTML( <<<'HTML' <html> <body> <abbr id="yadda" title="please&#x20;let&#x20;us&#x20;not&#x20;spread&#x20;superstitions&#x20;about&#x20;escaping">plunssae</abbr> </body> </html> HTML ); var_dump($doc->getElementById('yadda')->getAttribute('title'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PE8hk
function name:  (null)
number of ops:  16
compiled vars:  !0 = $doc
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $1      'DOMDocument'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
    4     3        INIT_METHOD_CALL                                             !0, 'loadHTML'
    6     4        SEND_VAL_EX                                                  '%3Chtml%3E%0A++++%3Cbody%3E%0A++++++++%3Cabbr+id%3D%22yadda%22+title%3D%22please%26%23x20%3Blet%26%23x20%3Bus%26%23x20%3Bnot%26%23x20%3Bspread%26%23x20%3Bsuperstitions%26%23x20%3Babout%26%23x20%3Bescaping%22%3Eplunssae%3C%2Fabbr%3E%0A++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
    4     5        DO_FCALL                                          0          
   14     6        INIT_FCALL                                                   'var_dump'
          7        INIT_METHOD_CALL                                             !0, 'getElementById'
          8        SEND_VAL_EX                                                  'yadda'
          9        DO_FCALL                                          0  $5      
         10        INIT_METHOD_CALL                                             $5, 'getAttribute'
         11        SEND_VAL_EX                                                  'title'
         12        DO_FCALL                                          0  $6      
         13        SEND_VAR                                                     $6
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.14 ms | 2708 KiB | 14 Q