3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0"?> <config> <a>test</a> </other> XML; libxml_use_internal_errors(true); echo 'LOAD INVALID XML STRING' . PHP_EOL; $simpleXML = simplexml_load_string($xml); echo 'DETECTED ERROR:' . PHP_EOL; var_dump(libxml_get_errors());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3eFuK
function name:  (null)
number of ops:  16
compiled vars:  !0 = $xml, !1 = $simpleXML
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3Cconfig%3E%0A++++%3Ca%3Etest%3C%2Fa%3E%0A%3C%2Fother%3E'
   10     1        INIT_FCALL                                               'libxml_use_internal_errors'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
   11     4        ECHO                                                     'LOAD+INVALID+XML+STRING%0A'
   12     5        INIT_FCALL                                               'simplexml_load_string'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
   14     9        ECHO                                                     'DETECTED+ERROR%3A%0A'
   15    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'libxml_get_errors'
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.67 ms | 1394 KiB | 21 Q