3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { libxml_use_internal_errors(true); $xml = simplexml_load_string('<?xml version="1.0"?><Pablo is="gay></Pablo>'); libxml_use_internal_errors(false); } catch (\Exception $e) { echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 11
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FEu6N
function name:  (null)
number of ops:  16
compiled vars:  !0 = $xml, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'libxml_use_internal_errors'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'simplexml_load_string'
          4        SEND_VAL                                                 '%3C%3Fxml+version%3D%221.0%22%3F%3E%3CPablo+is%3D%22gay%3E%3C%2FPablo%3E'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    6     7        INIT_FCALL                                               'libxml_use_internal_errors'
          8        SEND_VAL                                                 <false>
          9        DO_ICALL                                                 
         10      > JMP                                                      ->15
    7    11  E > > CATCH                                       last         'Exception'
    8    12    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         13        DO_FCALL                                      0  $6      
         14        ECHO                                                     $6
    9    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.69 ms | 1395 KiB | 17 Q