3v4l.org

run code in 300+ PHP versions simultaneously
<?php function logger() {} function myErrorHandler($errno, $errstr, $errfile, $errline) { switch ($errno) { case E_USER_ERROR: logger(); //exit; } } set_error_handler("myErrorHandler"); function makeMeRich(): never { trigger_error("Error", E_USER_ERROR); } makeMeRich();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOoa3
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'myErrorHandler'
          2        DO_ICALL                                                 
   19     3        INIT_FCALL                                               'makemerich'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function logger:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOoa3
function name:  logger
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                   null

End of function logger

Function myerrorhandler:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOoa3
function name:  myErrorHandler
number of ops:  10
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    6     4        IS_EQUAL                                                 !0, 256
          5      > JMPNZ                                                    ~4, ->7
          6    > > JMP                                                      ->9
    8     7    >   INIT_FCALL                                               'logger'
          8        DO_FCALL                                      0          
   11     9    > > RETURN                                                   null

End of function myerrorhandler

Function makemerich:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOoa3
function name:  makeMeRich
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'trigger_error'
          1        SEND_VAL                                                 'Error'
          2        SEND_VAL                                                 256
          3        DO_ICALL                                                 
   17     4        VERIFY_RETURN_TYPE                                       
          5      > RETURN                                                   null

End of function makemerich

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.01 ms | 1399 KiB | 19 Q