3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlDoc = new DOMDocument(); $xmlDoc->loadXML("<question><answer qtype='MCQ'>C</answer><grade>95</grade></question>"); $tag = $xmlDoc.getElementsByTagName('answer'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qn2tb
function name:  (null)
number of ops:  12
compiled vars:  !0 = $xmlDoc, !1 = $tag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        INIT_METHOD_CALL                                         !0, 'loadXML'
          4        SEND_VAL_EX                                              '%3Cquestion%3E%3Canswer+qtype%3D%27MCQ%27%3EC%3C%2Fanswer%3E%3Cgrade%3E95%3C%2Fgrade%3E%3C%2Fquestion%3E'
          5        DO_FCALL                                      0          
    4     6        INIT_FCALL_BY_NAME                                       'getElementsByTagName'
          7        SEND_VAL_EX                                              'answer'
          8        DO_FCALL                                      0  $6      
          9        CONCAT                                           ~7      !0, $6
         10        ASSIGN                                                   !1, ~7
    5    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.99 ms | 1392 KiB | 13 Q