3v4l.org

run code in 300+ PHP versions simultaneously
<?php class errorTest { private function handleError($e,$d) { die("$e : $d"); } function errorTest() { set_error_handler(array($this,'handleError')); echo 5/0; } } $d = new errorTest();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sknMK
function name:  (null)
number of ops:  4
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'errorTest'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class errorTest:
Function handleerror:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/sknMK
function name:  handleError
number of ops:  7
compiled vars:  !0 = $e, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ROPE_INIT                                     3  ~3      !0
          3        ROPE_ADD                                      1  ~3      ~3, '+%3A+'
          4        ROPE_END                                      2  ~2      ~3, !1
          5      > EXIT                                                     ~2
    6     6*     > 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/sknMK
function name:  errorTest
number of ops:  9
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        DIV                                              ~3      5, 0
          7        ECHO                                                     ~3
   11     8      > RETURN                                                   null

End of function errortest

End of class errorTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.56 ms | 1395 KiB | 15 Q