3v4l.org

run code in 300+ PHP versions simultaneously
<?php function shutdown() { var_dump(error_get_last()); } register_shutdown_function('shutdown'); throw new Exception('ololo');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/WAujv
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        SEND_VAL                                                 'shutdown'
          2        DO_ICALL                                                 
   10     3        NEW                                              $1      'Exception'
          4        SEND_VAL_EX                                              'ololo'
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $1
          7*     > RETURN                                                   1

Function shutdown:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WAujv
function name:  shutdown
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'error_get_last'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
    6     5      > RETURN                                                   null

End of function shutdown

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.66 ms | 1394 KiB | 19 Q