3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((function () { for ($i = 0; $i < 5; $i++) { try { return $i; } finally { try { if ($i != 3) throw new Exception; } catch (Exception $e) {} } } })());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HeW4t
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FHeW4t%3A3%240'
   12     2        INIT_DYNAMIC_CALL                                        ~0
          3        DO_FCALL                                      0  $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FHeW4t%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 162) Position 1 = 7, Position 2 = 4
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 13
Branch analysis from position: 13
2 jumps found. (Code = 107) Position 1 = 14, Position 2 = -2
Branch analysis from position: 14
filename:       /in/HeW4t
function name:  {closure}
number of ops:  19
compiled vars:  !0 = $i, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->16
    5     2    >   QM_ASSIGN                                        ~4      !0
          3      > FAST_CALL                                                ->7
          4    > > RETURN                                                   ~4
    6     5*       FAST_CALL                                                ->7
          6*       JMP                                                      ->15
    8     7    >   IS_NOT_EQUAL                                             !0, 3
          8      > JMPZ                                                     ~5, ->12
          9    >   NEW                                              $6      'Exception'
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $6
         12    > > JMP                                                      ->14
    9    13  E > > CATCH                                       last         'Exception'
         14    > > FAST_RET                                                 
    4    15*       PRE_INC                                                  !0
         16    >   IS_SMALLER                                               !0, 5
         17      > JMPNZ                                                    ~9, ->2
   12    18    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FHeW4t%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.3 ms | 1396 KiB | 15 Q