3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0"?> <config> <a>test</a> </other> XML; echo 'LOAD INVALID XML STRING' . PHP_EOL; $simpleXML = simplexml_load_string($xml); echo 'DETECTED ERROR:' . PHP_EOL; if ($simpleXML === false) { $err = error_get_last(); var_dump($err); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/69E3Y
function name:  (null)
number of ops:  16
compiled vars:  !0 = $xml, !1 = $simpleXML, !2 = $err
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        ECHO                                                         'LOAD+INVALID+XML+STRING%0A'
   11     2        INIT_FCALL                                                   'simplexml_load_string'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $4      
          5        ASSIGN                                                       !1, $4
   13     6        ECHO                                                         'DETECTED+ERROR%3A%0A'
   14     7        TYPE_CHECK                                        4          !1
          8      > JMPZ                                                         ~6, ->15
   15     9    >   INIT_FCALL                                                   'error_get_last'
         10        DO_ICALL                                             $7      
         11        ASSIGN                                                       !2, $7
   16    12        INIT_FCALL                                                   'var_dump'
         13        SEND_VAR                                                     !2
         14        DO_ICALL                                                     
   17    15    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.28 ms | 2138 KiB | 16 Q