3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Log { public static function enableHandler() { set_exception_handler(['Log', '_handleException']); } protected static function _handleException(Throwable $exception) { } } Log::enableHandler(); throw Exception();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/Jm9SX
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_STATIC_METHOD_CALL                                  'Log', 'enableHandler'
          1        DO_FCALL                                      0          
   14     2        INIT_FCALL_BY_NAME                                       'Exception'
          3        DO_FCALL                                      0  $1      
          4      > THROW                                         0          $1
          5*     > RETURN                                                   1

Class Log:
Function enablehandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jm9SX
function name:  enableHandler
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'set_exception_handler'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                                 
    6     3      > RETURN                                                   null

End of function enablehandler

Function _handleexception:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jm9SX
function name:  _handleException
number of ops:  2
compiled vars:  !0 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1      > RETURN                                                   null

End of function _handleexception

End of class Log.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.56 ms | 1436 KiB | 14 Q