3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.46 ms | 1393 KiB | 13 Q