3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("log_errors_max_len",40); try { function a() { function b() { function c() { throw new Exception(); } c(); } b(); } a(); } catch (Exception $e) { echo $e->getTraceAsString(); }
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: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mQCb6
function name:  (null)
number of ops:  13
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'log_errors_max_len'
          2        SEND_VAL                                                 40
          3        DO_ICALL                                                 
    5     4        DECLARE_FUNCTION                                         'a'
   14     5        INIT_FCALL_BY_NAME                                       'a'
          6        DO_FCALL                                      0          
          7      > JMP                                                      ->12
   15     8  E > > CATCH                                       last         'Exception'
   16     9    >   INIT_METHOD_CALL                                         !0, 'getTraceAsString'
         10        DO_FCALL                                      0  $3      
         11        ECHO                                                     $3
   17    12    > > RETURN                                                   1

Function %00a%2Fin%2FmQCb6%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mQCb6
function name:  a
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_FUNCTION                                         'b'
   12     1        INIT_FCALL_BY_NAME                                       'b'
          2        DO_FCALL                                      0          
   13     3      > RETURN                                                   null

End of function %00a%2Fin%2FmQCb6%3A5%240

Function %00b%2Fin%2FmQCb6%3A6%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mQCb6
function name:  b
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_FUNCTION                                         'c'
   10     1        INIT_FCALL_BY_NAME                                       'c'
          2        DO_FCALL                                      0          
   11     3      > RETURN                                                   null

End of function %00b%2Fin%2FmQCb6%3A6%241

Function %00c%2Fin%2FmQCb6%3A7%242:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/mQCb6
function name:  c
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $0      'Exception'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $0
    9     3*     > RETURN                                                   null

End of function %00c%2Fin%2FmQCb6%3A7%242

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.34 ms | 1401 KiB | 15 Q