3v4l.org

run code in 300+ PHP versions simultaneously
<?php $el = new SimpleXMLElement('<foo>65</foo>'); $el = $el->xpath('//foo'); var_dump((string) current($el)); var_dump(current($el)->asXml());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9P0Qe
function name:  (null)
number of ops:  24
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        INIT_FCALL                                               'current'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        CAST                                          6  ~7      $6
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
    5    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'current'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        INIT_METHOD_CALL                                         $9, 'asXml'
         20        DO_FCALL                                      0  $10     
         21        SEND_VAR                                                 $10
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.54 ms | 1386 KiB | 17 Q