3v4l.org

run code in 300+ PHP versions simultaneously
<?php $el = new SimpleXMLElement('<foo>65</foo>'); $el = $el->xpath('//foo'); var_dump((string) $el); var_dump($el->asXml());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tVjuK
function name:  (null)
number of ops:  18
compiled vars:  !0 = $el
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Cfoo%3E65%3C%2Ffoo%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        INIT_METHOD_CALL                                         !0, 'xpath'
          5        SEND_VAL_EX                                              '%2F%2Ffoo'
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !0, $4
    4     8        INIT_FCALL                                               'var_dump'
          9        CAST                                          6  ~6      !0
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !0, 'asXml'
         14        DO_FCALL                                      0  $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.3 ms | 939 KiB | 16 Q