3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<tag></tag>'); echo 'An empty SimpleXMLElement is '; var_export($xml); echo "\n"; $xml = new SimpleXMLElement('<tag>data</tag>'); echo 'A SimpleXMLElement with data is '; var_export($xml); echo "\n"; $obj = new stdClass(); echo 'An empty stdClass is '; var_export($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hrab2
function name:  (null)
number of ops:  26
compiled vars:  !0 = $xml, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Ctag%3E%3C%2Ftag%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    3     4        ECHO                                                     'An+empty+SimpleXMLElement+is+'
    4     5        INIT_FCALL                                               'var_export'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    5     8        ECHO                                                     '%0A'
    7     9        NEW                                              $6      'SimpleXMLElement'
         10        SEND_VAL_EX                                              '%3Ctag%3Edata%3C%2Ftag%3E'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !0, $6
    8    13        ECHO                                                     'A+SimpleXMLElement+with+data+is+'
    9    14        INIT_FCALL                                               'var_export'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   10    17        ECHO                                                     '%0A'
   12    18        NEW                                              $10     'stdClass'
         19        DO_FCALL                                      0          
         20        ASSIGN                                                   !1, $10
   13    21        ECHO                                                     'An+empty+stdClass+is+'
   14    22        INIT_FCALL                                               'var_export'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.25 ms | 1432 KiB | 14 Q