3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x() { try { throw new Exception('this will never be caught, but also never be seen'); } finally { return 1; } } try { var_dump(x()); } catch (Throwable $e) { echo "we're not going to catch it"; echo $e; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GSdPU
function name:  (null)
number of ops:  10
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'x'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                                 
          5      > JMP                                                      ->9
   13     6  E > > CATCH                                       last         'Throwable'
   14     7    >   ECHO                                                     'we%27re+not+going+to+catch+it'
   15     8        ECHO                                                     !0
   16     9    > > RETURN                                                   1

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/GSdPU
function name:  x
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $1      'Exception'
          1        SEND_VAL_EX                                              'this+will+never+be+caught%2C+but+also+never+be+seen'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $1
    6     4*       FAST_CALL                                                ->6
          5*       JMP                                                      ->9
    7     6*       DISCARD_EXCEPTION                                        
          7*       RETURN                                                   1
          8*       FAST_RET                                                 
    9     9*     > RETURN                                                   null

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.99 ms | 1398 KiB | 16 Q