3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.opentravel.org/OTA/2003/05"> <soapenv:Header/> <soapenv:Body> </soapenv:Body> </soapenv:Envelope>'); var_dump($xml); $soapenvxml = $xml->children("soapenv", true); var_dump($soapenvxml);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nmf0G
function name:  (null)
number of ops:  16
compiled vars:  !0 = $xml, !1 = $soapenvxml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Csoapenv%3AEnvelope+xmlns%3Asoapenv%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22+xmlns%3Ans%3D%22http%3A%2F%2Fwww.opentravel.org%2FOTA%2F2003%2F05%22%3E%0A%3Csoapenv%3AHeader%2F%3E%0A%3Csoapenv%3ABody%3E%0A%3C%2Fsoapenv%3ABody%3E%0A%3C%2Fsoapenv%3AEnvelope%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    9     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   11     7        INIT_METHOD_CALL                                         !0, 'children'
          8        SEND_VAL_EX                                              'soapenv'
          9        SEND_VAL_EX                                              <true>
         10        DO_FCALL                                      0  $6      
         11        ASSIGN                                                   !1, $6
   13    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.7 ms | 1398 KiB | 15 Q