3v4l.org

run code in 300+ PHP versions simultaneously
<?php $element = simplexml_load_string('<?xml version="1.0"?><document />'); var_export(serialize($element)); var_export(unserialize(serialize($element))->asXML());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WRMIS
function name:  (null)
number of ops:  22
compiled vars:  !0 = $element
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'simplexml_load_string'
          1        SEND_VAL                                                 '%3C%3Fxml+version%3D%221.0%22%3F%3E%3Cdocument+%2F%3E'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'var_export'
          5        INIT_FCALL                                               'serialize'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_export'
         11        INIT_FCALL                                               'unserialize'
         12        INIT_FCALL                                               'serialize'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17        INIT_METHOD_CALL                                         $6, 'asXML'
         18        DO_FCALL                                      0  $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.22 ms | 1395 KiB | 21 Q