3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myErrorHandler($exception) { $e_code = $exception->getCode(); echo $e_code; } set_exception_handler('myErrorHandler'); throw new Exception('eeeee', 12); /* try{ //division by zero //$number = 5/0; unlink("c:\boot.bat"); $a=5+3; echo $a; } catch(Exception $ex){ echo "Dotum bi hata yapmış olmalısın mesaj bu:".$ex->getMessage(), ' : Hadi kolay gelsin sana canım'; } */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/K2DaL
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'set_exception_handler'
          1        SEND_VAL                                                 'myErrorHandler'
          2        DO_ICALL                                                 
   11     3        NEW                                              $1      'Exception'
          4        SEND_VAL_EX                                              'eeeee'
          5        SEND_VAL_EX                                              12
          6        DO_FCALL                                      0          
          7      > THROW                                         0          $1
   24     8*     > RETURN                                                   1

Function myerrorhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K2DaL
function name:  myErrorHandler
number of ops:  6
compiled vars:  !0 = $exception, !1 = $e_code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_METHOD_CALL                                         !0, 'getCode'
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !1, $2
    6     4        ECHO                                                     !1
    7     5      > RETURN                                                   null

End of function myerrorhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.96 ms | 1395 KiB | 15 Q