3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ContinueException extends Exception {} var_dump((function () { for ($i = 0; $i < 5; $i++) { try { try { return $i; } finally { if ($i != 3) throw new ContinueException; } } catch (ContinueException $e) { continue; } } })());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W967o
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FW967o%3A5%240'
   17     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%2FW967o%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 2
Branch analysis from position: 19
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 = 163) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 2
Branch analysis from position: 19
Branch analysis from position: 2
filename:       /in/W967o
function name:  {closure}
number of ops:  20
compiled vars:  !0 = $i, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->17
    9     2    >   QM_ASSIGN                                        ~4      !0
          3      > FAST_CALL                                                ->7
          4    > > RETURN                                                   ~4
   10     5*       FAST_CALL                                                ->7
          6*       JMP                                                      ->13
   11     7    >   IS_NOT_EQUAL                                             !0, 3
          8      > JMPZ                                                     ~5, ->12
          9    >   NEW                                              $6      'ContinueException'
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $6
         12    > > FAST_RET                                                 
         13*       JMP                                                      ->16
   13    14  E > > CATCH                                       last         'ContinueException'
   14    15    > > JMP                                                      ->16
    6    16    >   PRE_INC                                                  !0
         17    >   IS_SMALLER                                               !0, 5
         18      > JMPNZ                                                    ~9, ->2
   17    19    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FW967o%3A5%240

Class ContinueException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.61 ms | 1396 KiB | 15 Q