3v4l.org

run code in 300+ PHP versions simultaneously
<?php class errorTest { function handleError() { die('{}'); } function errorTest() { set_error_handler(array($this,'handleError')); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HdLtu
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   1

Class errorTest:
Function handleerror:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/HdLtu
function name:  handleError
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > EXIT                                                     '%7B%7D'
    6     1*     > RETURN                                                   null

End of function handleerror

Function errortest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HdLtu
function name:  errorTest
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'set_error_handler'
          1        FETCH_THIS                                       ~0      
          2        INIT_ARRAY                                       ~1      ~0
          3        ADD_ARRAY_ELEMENT                                ~1      'handleError'
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
   10     6      > RETURN                                                   null

End of function errortest

End of class errorTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.25 ms | 1395 KiB | 15 Q