3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.75 ms | 1394 KiB | 13 Q