FE_RESET

PHP code

<?php
/*
 * Initialize an iterator on array-value.  If the array is empty, jump to address.  Followed by FE_FETCH.
 * opcode number: 77
 */
$a = array(1,2,3);
foreach($a as $num){
    print $num;
}
?>

PHP opcodes

Function name: (null)

Compiled variables: !0=$a, !1=$num

line#opfetchextreturnoperands
60INIT_ARRAY  ~01
 1ADD_ARRAY_ELEMENT  ~02
 2ADD_ARRAY_ELEMENT  ~03
 3ASSIGN   !0,~0
74FE_RESET  $2!0,->11
 5FE_FETCH  $3$2,->11
 6ZEND_OP_DATA    
 7ASSIGN   !1,$3
88PRINT  ~5!1
 9FREE   ~5
910JMP   ->5
 11SWITCH_FREE   $2
1012RETURN   1