3v4l.org

run code in 300+ PHP versions simultaneously
<?php function loop_prologue() { echo "starting loop\n"; } function loop_epilogue() { echo "terminating loop\n"; } function loop_iter() { echo "iteration\n"; } $x = 3; 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/VMknY
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 3
   10     1      > JMP                                                      ->4
   12     2    >   INIT_FCALL                                               'loop_iter'
          3        DO_FCALL                                      0          
   11     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
   13    11    > > RETURN                                                   1

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

End of function loop_prologue

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

End of function loop_iter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.52 ms | 1399 KiB | 15 Q