3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!class_exists('SimpleXMLElement')) die("Bonkers"); $xml = new SimpleXMLElement('<xml><node>foo</node></xml>'); var_dump($xml->node); var_dump(gettype($xml->node)); var_dump(gettype($xml->node->foo)); var_dump(isset($xml->node->foo)); var_dump(is_null($xml->node->foo));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OOfQQ
function name:  (null)
number of ops:  37
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'SimpleXMLElement'
          2        DO_ICALL                                         $1      
          3        BOOL_NOT                                         ~2      $1
          4      > JMPZ                                                     ~2, ->6
          5    > > EXIT                                                     'Bonkers'
    3     6    >   NEW                                              $3      'SimpleXMLElement'
          7        SEND_VAL_EX                                              '%3Cxml%3E%3Cnode%3Efoo%3C%2Fnode%3E%3C%2Fxml%3E'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $3
    4    10        INIT_FCALL                                               'var_dump'
         11        FETCH_OBJ_R                                      ~6      !0, 'node'
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
    5    14        INIT_FCALL                                               'var_dump'
         15        FETCH_OBJ_R                                      ~8      !0, 'node'
         16        GET_TYPE                                         ~9      ~8
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                                 
    6    19        INIT_FCALL                                               'var_dump'
         20        FETCH_OBJ_R                                      ~11     !0, 'node'
         21        FETCH_OBJ_R                                      ~12     ~11, 'foo'
         22        GET_TYPE                                         ~13     ~12
         23        SEND_VAL                                                 ~13
         24        DO_ICALL                                                 
    7    25        INIT_FCALL                                               'var_dump'
         26        FETCH_OBJ_IS                                     ~15     !0, 'node'
         27        ISSET_ISEMPTY_PROP_OBJ                           ~16     ~15, 'foo'
         28        SEND_VAL                                                 ~16
         29        DO_ICALL                                                 
    8    30        INIT_FCALL                                               'var_dump'
         31        FETCH_OBJ_R                                      ~18     !0, 'node'
         32        FETCH_OBJ_R                                      ~19     ~18, 'foo'
         33        TYPE_CHECK                                    2  ~20     ~19
         34        SEND_VAL                                                 ~20
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.3 ms | 1396 KiB | 17 Q