3v4l.org

run code in 500+ PHP versions simultaneously
<?php function errorHandler($level, $msg){ $debug = debug_backtrace(); $debug[1]['args'][0]='1'; return true; } set_error_handler('errorHandler'); function a($a){ // E_RECOVERABLE_ERROR var_dump($a); } class A{} a(1); a(2); a(new A()); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QI9H8
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'set_error_handler'
          1        SEND_VAL                                                     'errorHandler'
          2        DO_ICALL                                                     
   17     3        INIT_FCALL                                                   'a'
          4        SEND_VAL                                                     1
          5        DO_FCALL                                          0          
   18     6        INIT_FCALL                                                   'a'
          7        SEND_VAL                                                     2
          8        DO_FCALL                                          0          
   19     9        INIT_FCALL                                                   'a'
         10        NEW                                                  $3      'A'
         11        DO_FCALL                                          0          
         12        SEND_VAR                                                     $3
         13        DO_FCALL                                          0          
   21    14      > RETURN                                                       1

Function errorhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QI9H8
function name:  errorHandler
number of ops:  11
compiled vars:  !0 = $level, !1 = $msg, !2 = $debug
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    4     2        INIT_FCALL                                                   'debug_backtrace'
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !2, $3
    5     5        FETCH_DIM_W                                          $5      !2, 1
          6        FETCH_DIM_W                                          $6      $5, 'args'
          7        ASSIGN_DIM                                                   $6, 0
          8        OP_DATA                                                      '1'
    6     9      > RETURN                                                       <true>
    7    10*     > RETURN                                                       null

End of function errorhandler

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

End of function a

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
437.7 ms | 2625 KiB | 19 Q