3v4l.org

run code in 300+ PHP versions simultaneously
<?php function loop_epilogue() { echo "terminating loop\n"; return false; } function loop_iter() { echo "iteration\n"; } $x = 1; for ( FALSE; ( ( $x-- >= 1 ) || ( loop_epilogue() ) ); loop_iter() );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
Branch analysis from position: 10
Branch analysis from position: 10
filename:       /in/2BORl
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 1
    8     1      > JMP                                                      ->4
   10     2    >   INIT_FCALL                                               'loop_iter'
          3        DO_FCALL                                      0          
    9     4    >   POST_DEC                                         ~3      !0
          5        IS_SMALLER_OR_EQUAL                              ~4      1, ~3
          6      > JMPNZ_EX                                         ~4      ~4, ->10
          7    >   INIT_FCALL                                               'loop_epilogue'
          8        DO_FCALL                                      0  $5      
          9        BOOL                                             ~4      $5
         10    > > JMPNZ                                                    ~4, ->2
   11    11    > > RETURN                                                   1

Function loop_epilogue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2BORl
function name:  loop_epilogue
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'terminating+loop%0A'
          1      > RETURN                                                   <false>
          2*     > RETURN                                                   null

End of function loop_epilogue

Function loop_iter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2BORl
function name:  loop_iter
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'iteration%0A'
          1      > RETURN                                                   null

End of function loop_iter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.64 ms | 1403 KiB | 15 Q