3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '<key><subKey>value</subKey></key>'; $xml = simplexml_load_string($input); print_r(var_dump(is_null(strval($xml->subKey))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/84l2R
function name:  (null)
number of ops:  15
compiled vars:  !0 = $input, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ckey%3E%3CsubKey%3Evalue%3C%2FsubKey%3E%3C%2Fkey%3E'
    3     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    4     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_R                                      ~5      !1, 'subKey'
          8        CAST                                          6  ~6      ~5
          9        TYPE_CHECK                                    2  ~7      ~6
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.74 ms | 1394 KiB | 19 Q