3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <a> <foo name="one" game="lonely">1</foo> </a> XML; $xml = simplexml_load_string($string); var_dump(isset($xml->foo->attributes()->type));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GDkFP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ca%3E%0A+%3Cfoo+name%3D%22one%22+game%3D%22lonely%22%3E1%3C%2Ffoo%3E%0A%3C%2Fa%3E'
    9     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   11     5        INIT_FCALL                                               'var_dump'
          6        FETCH_OBJ_R                                      ~5      !1, 'foo'
          7        INIT_METHOD_CALL                                         ~5, 'attributes'
          8        DO_FCALL                                      0  $6      
          9        ISSET_ISEMPTY_PROP_OBJ                           ~7      $6, 'type'
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.26 ms | 1394 KiB | 17 Q