3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlString = '<properties><property name="width">20</property><property name="height">100</property></properties>'; echo json_encode(simplexml_load_string($xmlString));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MU6fq
function name:  (null)
number of ops:  9
compiled vars:  !0 = $xmlString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cproperties%3E%3Cproperty+name%3D%22width%22%3E20%3C%2Fproperty%3E%3Cproperty+name%3D%22height%22%3E100%3C%2Fproperty%3E%3C%2Fproperties%3E'
    3     1        INIT_FCALL                                               'json_encode'
          2        INIT_FCALL                                               'simplexml_load_string'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        ECHO                                                     $3
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.68 ms | 1004 KiB | 15 Q