3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('hhvm.log.always_log_unhandled_exceptions', false); set_exception_handler( function ($exception) { error_log("handling $exception"); }); throw new Exception("I'm an exception");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/3Pd4c
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'hhvm.log.always_log_unhandled_exceptions'
          2        SEND_VAL                                                 <false>
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'set_exception_handler'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F3Pd4c%3A3%240'
    5     6        SEND_VAL                                                 ~1
          7        DO_ICALL                                                 
    7     8        NEW                                              $3      'Exception'
          9        SEND_VAL_EX                                              'I%27m+an+exception'
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $3
         12*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F3Pd4c%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3Pd4c
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'error_log'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~1      'handling+', !0
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
    5     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F3Pd4c%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.25 ms | 1395 KiB | 19 Q