3v4l.org

run code in 500+ PHP versions simultaneously
<?php header('Content-Type: text/plain'); $str_xml = "<myxml><mytag><![CDATA[In this content, 8 > 2 & 1 < 9, and 10 is a 10% of 100. ]]></mytag></myxml>"; try { echo "XML with CDATA: \n\n"; $xml = simplexml_load_string($str_xml); echo $xml->asXML() ."\n\n"; } catch(Exception $e){ echo "XML with CDATA: \n\n"; echo $e->getMessage() ."\n\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OJ8d2
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str_xml, !1 = $xml, !2 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'header'
          1        SEND_VAL                                                     'Content-Type%3A+text%2Fplain'
          2        DO_ICALL                                                     
    4     3        ASSIGN                                                       !0, '%3Cmyxml%3E%3Cmytag%3E%3C%21%5BCDATA%5BIn+this+content%2C+8+%3E+2+%26+1+%3C+9%2C+and+10+is+a+10%25+of+100.+%5D%5D%3E%3C%2Fmytag%3E%3C%2Fmyxml%3E'
    7     4        ECHO                                                         'XML+with+CDATA%3A+%0A%0A'
    8     5        INIT_FCALL                                                   'simplexml_load_string'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $5      
          8        ASSIGN                                                       !1, $5
    9     9        INIT_METHOD_CALL                                             !1, 'asXML'
         10        DO_FCALL                                          0  $7      
         11        CONCAT                                               ~8      $7, '%0A%0A'
         12        ECHO                                                         ~8
         13      > JMP                                                          ->20
   10    14  E > > CATCH                                           last         'Exception'
   11    15    >   ECHO                                                         'XML+with+CDATA%3A+%0A%0A'
   12    16        INIT_METHOD_CALL                                             !2, 'getMessage'
         17        DO_FCALL                                          0  $9      
         18        CONCAT                                               ~10     $9, '%0A%0A'
         19        ECHO                                                         ~10
   13    20    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.87 ms | 3357 KiB | 15 Q