3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myErrorHandler($errno) { echo 'a'; } set_exception_handler('myErrorHandler'); class ClassA { public function method_a (ClassB $b) {} } class ClassWrong{} $a = new ClassA; $a->method_a(new ClassWrong); echo 'done.';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kldXP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'set_exception_handler'
          1        SEND_VAL                                                 'myErrorHandler'
          2        DO_ICALL                                                 
   14     3        NEW                                              $2      'ClassA'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   15     6        INIT_METHOD_CALL                                         !0, 'method_a'
          7        NEW                                              $5      'ClassWrong'
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $5
         10        DO_FCALL                                      0          
   16    11        ECHO                                                     'done.'
         12      > RETURN                                                   1

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

End of function myerrorhandler

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

End of function method_a

End of class ClassA.

Class ClassWrong: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.63 ms | 1395 KiB | 15 Q