3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '<key><subKey>value</subKey></key>'; $xml = simplexml_load_string($input); print_r(is_null(strval($xml->subKey)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WXLr9
function name:  (null)
number of ops:  12
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        FETCH_OBJ_R                                      ~5      !1, 'subKey'
          7        CAST                                          6  ~6      ~5
          8        TYPE_CHECK                                    2  ~7      ~6
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.69 ms | 1394 KiB | 17 Q