3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myErrorHandler($errno, $errstr, $errfile, $errline) { var_dump('got in'); } set_error_handler("myErrorHandler"); $bla = new stdClass; try { $bla->method(); } catch (\Throwable $e) { echo get_class($e); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZMa4
function name:  (null)
number of ops:  13
compiled vars:  !0 = $bla, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'myErrorHandler'
          2        DO_ICALL                                                 
    9     3        NEW                                              $3      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
   11     6        INIT_METHOD_CALL                                         !0, 'method'
          7        DO_FCALL                                      0          
          8      > JMP                                                      ->12
   12     9  E > > CATCH                                       last         'Throwable'
   13    10    >   GET_CLASS                                        ~7      !1
         11        ECHO                                                     ~7
   14    12    > > RETURN                                                   1

Function myerrorhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZMa4
function name:  myErrorHandler
number of ops:  8
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAL                                                 'got+in'
          6        DO_ICALL                                                 
    6     7      > RETURN                                                   null

End of function myerrorhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.14 ms | 1395 KiB | 17 Q