3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); $a = '<xml />'; $xml = new SimpleXmlElement($a); $xml->something->somethingelse->attributes(); assert($xml->something->somethingelse instanceof SimpleXmlElement);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kWSfE
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cxml+%2F%3E'
    4     1        NEW                                              $3      'SimpleXmlElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    5     5        FETCH_OBJ_R                                      ~6      !1, 'something'
          6        FETCH_OBJ_R                                      ~7      ~6, 'somethingelse'
          7        INIT_METHOD_CALL                                         ~7, 'attributes'
          8        DO_FCALL                                      0          
    6     9        ASSERT_CHECK                                             
         10        INIT_FCALL                                               'assert'
         11        FETCH_OBJ_R                                      ~9      !1, 'something'
         12        FETCH_OBJ_R                                      ~10     ~9, 'somethingelse'
         13        INSTANCEOF                                       ~11     ~10, 'SimpleXmlElement'
         14        SEND_VAL                                                 ~11
         15        SEND_VAL                                                 'assert%28%24xml-%3Esomething-%3Esomethingelse+instanceof+SimpleXmlElement%29'
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.75 ms | 1014 KiB | 14 Q