3v4l.org

run code in 300+ PHP versions simultaneously
<?php $transport = array('foot', 'bike', 'car', 'plane'); $i=0; while (list(, $val)=each($transport)) { print $val; if($i==0) {$transport[]='merce';$i=1;} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
Branch analysis from position: 9
filename:       /in/4mbZT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $transport, !1 = $i, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
    5     2      > JMP                                                      ->9
    6     3    >   ECHO                                                     !2
    7     4        IS_EQUAL                                                 !1, 0
          5      > JMPZ                                                     ~5, ->9
          6    >   ASSIGN_DIM                                               !0
          7        OP_DATA                                                  'merce'
          8        ASSIGN                                                   !1, 1
    5     9    >   INIT_FCALL_BY_NAME                                       'each'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $8      
         12        FETCH_LIST_R                                     $9      $8, 1
         13        ASSIGN                                                   !2, $9
         14      > JMPNZ                                                    $8, ->3
    8    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.48 ms | 1393 KiB | 13 Q