3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); try { $func = function () { throw new \Exception; }; $func(); } catch (\Exception $e) { var_dump($e->getTrace()); $_SESSION['exceptions'][] = $e; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ei3lX
function name:  (null)
number of ops:  18
compiled vars:  !0 = $func, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    4     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FEi3lX%3A4%240'
          3        ASSIGN                                                   !0, ~3
    5     4        INIT_DYNAMIC_CALL                                        !0
          5        DO_FCALL                                      0          
          6      > JMP                                                      ->17
    6     7  E > > CATCH                                       last         'Exception'
    7     8    >   INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !1, 'getTrace'
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
    8    13        FETCH_W                      global              $8      '_SESSION'
         14        FETCH_DIM_W                                      $9      $8, 'exceptions'
         15        ASSIGN_DIM                                               $9
         16        OP_DATA                                                  !1
    9    17    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FEi3lX%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/Ei3lX
function name:  {closure}
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $0      'Exception'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $0
          3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FEi3lX%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.73 ms | 1395 KiB | 17 Q