3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement($string); $result = $xml->xpath('/x'); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J9lJ1
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $xml, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ca%3E%0A+%3Cb%3E%0A++%3Cc%3Etext%3C%2Fc%3E%0A++%3Cc%3Estuff%3C%2Fc%3E%0A+%3C%2Fb%3E%0A+%3Cd%3E%0A++%3Cc%3Ecode%3C%2Fc%3E%0A+%3C%2Fd%3E%0A%3C%2Fa%3E'
   14     1        NEW                                              $4      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   17     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2Fx'
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !2, $7
   18     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.21 ms | 1394 KiB | 15 Q