3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.04 ms | 1393 KiB | 13 Q