3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
247.56 ms | 1393 KiB | 17 Q