3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <global> <entity_id><![CDATA[82]]></entity_id> <attribute_set_id><![CDATA[9]]></attribute_set_id> <sku><![CDATA[ana_8]]></sku> <erp> <barcode></barcode> <erp> </global> XML; echo json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9KMlM
function name:  (null)
number of ops:  11
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cglobal%3E%0A++++%3Centity_id%3E%3C%21%5BCDATA%5B82%5D%5D%3E%3C%2Fentity_id%3E%0A++++%3Cattribute_set_id%3E%3C%21%5BCDATA%5B9%5D%5D%3E%3C%2Fattribute_set_id%3E%0A++++%3Csku%3E%3C%21%5BCDATA%5Bana_8%5D%5D%3E%3C%2Fsku%3E%0A++++%3Cerp%3E%0A++++++++%3Cbarcode%3E%3C%2Fbarcode%3E%0A++++%3Cerp%3E%0A%3C%2Fglobal%3E'
   14     1        INIT_FCALL                                               'json_encode'
          2        INIT_FCALL                                               'simplexml_load_string'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'SimpleXMLElement'
          5        SEND_VAL                                                 16384
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.71 ms | 1394 KiB | 17 Q