3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('one', 'two', 'three', 'four', 'stop', 'five'); while (list(, $val) = each($arr)) { if ($val == 'stop') { break; /* You could also write 'break 1;' here. */ } echo "$val<br />\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 2
Branch analysis from position: 14
Branch analysis from position: 2
filename:       /in/B545u
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1      > JMP                                                      ->8
    6     2    >   IS_EQUAL                                                 !1, 'stop'
          3      > JMPZ                                                     ~3, ->5
    7     4    > > JMP                                                      ->14
    9     5    >   NOP                                                      
          6        FAST_CONCAT                                      ~4      !1, '%3Cbr+%2F%3E%0A'
          7        ECHO                                                     ~4
    5     8    >   INIT_FCALL_BY_NAME                                       'each'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $5      
         11        FETCH_LIST_R                                     $6      $5, 1
         12        ASSIGN                                                   !1, $6
         13      > JMPNZ                                                    $5, ->2
   10    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.09 ms | 1385 KiB | 16 Q