3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = simplexml_load_string('<a><![CDATA[OK]]></a>', null, LIBXML_NOCDATA ); var_dump($xml); var_dump($xml['a']); var_dump($xml->a); $content = simplexml_load_string( '<content><![CDATA[Hello, world!]]></content>' , null , LIBXML_NOCDATA ); var_dump($content);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3UcRn
function name:  (null)
number of ops:  27
compiled vars:  !0 = $xml, !1 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'simplexml_load_string'
          1        SEND_VAL                                                 '%3Ca%3E%3C%21%5BCDATA%5BOK%5D%5D%3E%3C%2Fa%3E'
          2        SEND_VAL                                                 null
          3        SEND_VAL                                                 16384
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        FETCH_DIM_R                                      ~5      !0, 'a'
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'var_dump'
         14        FETCH_OBJ_R                                      ~7      !0, 'a'
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'simplexml_load_string'
    9    18        SEND_VAL                                                 '%3Ccontent%3E%3C%21%5BCDATA%5BHello%2C+world%21%5D%5D%3E%3C%2Fcontent%3E'
   10    19        SEND_VAL                                                 null
   11    20        SEND_VAL                                                 16384
         21        DO_ICALL                                         $9      
    8    22        ASSIGN                                                   !1, $9
   13    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.87 ms | 1395 KiB | 17 Q