3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = simplexml_load_string(' <person> <profile> <name>PHP developer</name> </profile> </person>'); // get all names $xml = $xml->xpath('/person/profile/name'); // get first result $xml = reset($xml); // show result print_r($xml);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/It6SJ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'simplexml_load_string'
          1        SEND_VAL                                                 '%0A%3Cperson%3E%0A++%3Cprofile%3E%0A++++%3Cname%3EPHP+developer%3C%2Fname%3E%0A++%3C%2Fprofile%3E%0A%3C%2Fperson%3E'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
   11     4        INIT_METHOD_CALL                                         !0, 'xpath'
          5        SEND_VAL_EX                                              '%2Fperson%2Fprofile%2Fname'
          6        DO_FCALL                                      0  $3      
          7        ASSIGN                                                   !0, $3
   13     8        INIT_FCALL                                               'reset'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !0, $5
   15    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.3 ms | 1394 KiB | 19 Q