3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.54 ms | 1393 KiB | 13 Q