3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xml = '<root />'; var_dump((new DOMDocument)->loadXML($xml)); var_dump(DOMDocument::loadXML($xml));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JIRQn
function name:  (null)
number of ops:  16
compiled vars:  !0 = $xml
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Croot+%2F%3E'
    5     1        INIT_FCALL                                                   'var_dump'
          2        NEW                                                  $2      'DOMDocument'
          3        DO_FCALL                                          0          
          4        INIT_METHOD_CALL                                             $2, 'loadXML'
          5        SEND_VAR_EX                                                  !0
          6        DO_FCALL                                          0  $4      
          7        SEND_VAR                                                     $4
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'var_dump'
         10        INIT_STATIC_METHOD_CALL                                      'DOMDocument', 'loadXML'
         11        SEND_VAR                                                     !0
         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:
173.34 ms | 3704 KiB | 14 Q