3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = <<<XML <habrauser> <error>404</error> </habrauser> XML; $xmlRoot = new SimpleXMLElement($e); $e = $xmlRoot->xpath('/habrauser/error'); var_dump($e);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ao7Zj
function name:  (null)
number of ops:  13
compiled vars:  !0 = $e, !1 = $xmlRoot
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Chabrauser%3E%0A%3Cerror%3E404%3C%2Ferror%3E%0A%3C%2Fhabrauser%3E'
    7     1        NEW                                              $3      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    9     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2Fhabrauser%2Ferror'
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !0, $6
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.66 ms | 1385 KiB | 15 Q