3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); foreach ($arr as $a) { // This is the line that does the checking if (!each($arr)) echo "End!\n"; echo $a."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 12
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/EugLe
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $3      !0, ->12
          2    > > FE_FETCH_R                                               $3, !1, ->12
    7     3    >   INIT_FCALL_BY_NAME                                       'each'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $4      
          6        BOOL_NOT                                         ~5      $4
          7      > JMPZ                                                     ~5, ->9
          8    >   ECHO                                                     'End%21%0A'
    9     9    >   CONCAT                                           ~6      !1, '%0A'
         10        ECHO                                                     ~6
    4    11      > JMP                                                      ->2
         12    >   FE_FREE                                                  $3
   11    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.32 ms | 1393 KiB | 13 Q