3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((function () { for ($i = 0; $i < 5; $i++) { try { return $i; } finally { return 4; } } })());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E18Xo
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%2FE18Xo%3A3%240'
    9     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%2FE18Xo%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E18Xo
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->11
    5     2    >   QM_ASSIGN                                        ~3      !0
          3      > FAST_CALL                                                ->7
          4    > > RETURN                                                   ~3
    6     5*       FAST_CALL                                                ->7
          6*       JMP                                                      ->10
          7    >   DISCARD_EXCEPTION                                        
          8      > RETURN                                                   4
          9*       FAST_RET                                                 
    4    10*       PRE_INC                                                  !0
         11    >   IS_SMALLER                                               !0, 5
         12      > JMPNZ                                                    ~5, ->2
    9    13    > > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.24 ms | 1395 KiB | 15 Q