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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eccaO
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml
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                                         $1      
          5        ASSIGN                                                   !0, $1
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        FETCH_DIM_R                                      ~4      !0, 'a'
         11        SEND_VAL                                                 ~4
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'var_dump'
         14        FETCH_OBJ_R                                      ~6      !0, 'a'
         15        SEND_VAL                                                 ~6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.84 ms | 1398 KiB | 17 Q