3v4l.org

run code in 500+ 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((bool)$xml); $soapenvxml = $xml->children("soapenv", true); var_dump((bool)$soapenvxml);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6YOWK
function name:  (null)
number of ops:  18
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        BOOL                                                 ~5      !0
          6        SEND_VAL                                                     ~5
          7        DO_ICALL                                                     
   11     8        INIT_METHOD_CALL                                             !0, 'children'
          9        SEND_VAL_EX                                                  'soapenv'
         10        SEND_VAL_EX                                                  <true>
         11        DO_FCALL                                          0  $7      
         12        ASSIGN                                                       !1, $7
   13    13        INIT_FCALL                                                   'var_dump'
         14        BOOL                                                 ~9      !1
         15        SEND_VAL                                                     ~9
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.09 ms | 2384 KiB | 14 Q