3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r('before<br>'); trigger_error('error'); print_r(error_get_last()); $xml = new DOMDocument('1.0', 'UTF-8'); echo '<br><br><br>'; print_r('after<br>'); trigger_error('error'); $xml = new DOMDocument('1.0', 'UTF-8'); print_r(error_get_last()); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NlJYJ
function name:  (null)
number of ops:  34
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        SEND_VAL                                                 'before%3Cbr%3E'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'trigger_error'
          4        SEND_VAL                                                 'error'
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'print_r'
          7        INIT_FCALL                                               'error_get_last'
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
    6    11        NEW                                              $5      'DOMDocument'
         12        SEND_VAL_EX                                              '1.0'
         13        SEND_VAL_EX                                              'UTF-8'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !0, $5
    8    16        ECHO                                                     '%3Cbr%3E%3Cbr%3E%3Cbr%3E'
   10    17        INIT_FCALL                                               'print_r'
         18        SEND_VAL                                                 'after%3Cbr%3E'
         19        DO_ICALL                                                 
   11    20        INIT_FCALL                                               'trigger_error'
         21        SEND_VAL                                                 'error'
         22        DO_ICALL                                                 
   12    23        NEW                                              $10     'DOMDocument'
         24        SEND_VAL_EX                                              '1.0'
         25        SEND_VAL_EX                                              'UTF-8'
         26        DO_FCALL                                      0          
         27        ASSIGN                                                   !0, $10
   13    28        INIT_FCALL                                               'print_r'
         29        INIT_FCALL                                               'error_get_last'
         30        DO_ICALL                                         $13     
         31        SEND_VAR                                                 $13
         32        DO_ICALL                                                 
   15    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.47 ms | 1396 KiB | 19 Q