3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* final public ExceptionException::getPrevious ( void ) final public stringException::getFile ( void ) public string Exception::__toString ( void ) final private voidException::__clone ( void ) */ error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, '00007600', $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { echo $e->getTraceAsString(); }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 13
Branch analysis from position: 13
Jump found. Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
Jump found. Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
Jump found. Position 1 = -2
filename:       /in/c721W
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x, !1 = $e
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  15     0  E >   INIT_FCALL                                               'error_reporting'
         1        SEND_VAL                                                 32767
         2        DO_ICALL                                                 
  16     3        NOP                                                      
  19     4        INIT_FCALL                                               'set_error_handler'
         5        SEND_VAL                                                 'exception_error_handler'
         6        DO_ICALL                                                 
  29     7        ECHO                                                     !0
         8      > JMP                                                      ->13
  31     9  E > > CATCH                                                    'Exception', !1
  32    10    >   INIT_METHOD_CALL                                         !1, 'getTraceAsString'
        11        DO_FCALL                                      0  $4      
        12        ECHO                                                     $4
        13    > > RETURN                                                   1

Function exception_error_handler:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/c721W
function name:  exception_error_handler
number of ops:  13
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  16     0  E >   RECV                                             !0      
         1        RECV                                             !1      
         2        RECV                                             !2      
         3        RECV                                             !3      
  17     4        NEW                                              $4      :-6
         5        SEND_VAR_EX                                              !1
         6        SEND_VAL_EX                                              '00007600'
         7        SEND_VAR_EX                                              !0
         8        SEND_VAR_EX                                              !2
         9        SEND_VAR_EX                                              !3
        10        DO_FCALL                                      0          
        11      > THROW                                         0          $4
  18    12*     > RETURN                                                   null

End of function exception_error_handler

Generated using Vulcan Logic Dumper, using php 7.2.0