3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ( $i=0; $i<10; $i++ ) { echo "Loop start $i\n"; if ( $i % 2 == 0 ) { // continue; goto continue_only_block; } echo "Loop body $i\n"; if ( false ) { continue_only_block: echo "Continue block $i\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 2
Branch analysis from position: 22
Branch analysis from position: 2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
Branch analysis from position: 19
filename:       /in/HbSei
function name:  (null)
number of ops:  23
compiled vars:  !0 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 0
          1      > JMP                                                          ->20
    4     2    >   ROPE_INIT                                         3  ~3      'Loop+start+'
          3        ROPE_ADD                                          1  ~3      ~3, !0
          4        ROPE_END                                          2  ~2      ~3, '%0A'
          5        ECHO                                                         ~2
    5     6        MOD                                                  ~5      !0, 2
          7        IS_EQUAL                                                     ~5, 0
          8      > JMPZ                                                         ~6, ->10
    7     9    > > JMP                                                          ->15
   10    10    >   ROPE_INIT                                         3  ~8      'Loop+body+'
         11        ROPE_ADD                                          1  ~8      ~8, !0
         12        ROPE_END                                          2  ~7      ~8, '%0A'
         13        ECHO                                                         ~7
   12    14      > JMPZ                                                         <false>, ->19
   14    15    >   ROPE_INIT                                         3  ~11     'Continue+block+'
         16        ROPE_ADD                                          1  ~11     ~11, !0
         17        ROPE_END                                          2  ~10     ~11, '%0A'
         18        ECHO                                                         ~10
    3    19    >   PRE_INC                                                      !0
         20    >   IS_SMALLER                                                   !0, 10
         21      > JMPNZ                                                        ~14, ->2
   16    22    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.62 ms | 3394 KiB | 12 Q