3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('a'=>1, 'b'=>2); $b = true; while((list(, $value) = each($a)) && $b) { var_dump($value); $b = false; }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 7
Branch analysis from position: 7
Jump found. Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
Jump found. Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Jump found. Position 1 = -2
Branch analysis from position: 3
Jump found. Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
Branch analysis from position: 14
Branch analysis from position: 14
filename:       /in/5PS9o
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b, !2 = $value
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, <array>
   4     1        ASSIGN                                                   !1, <true>
   5     2      > JMP                                                      ->7
   6     3    >   INIT_FCALL                                               'var_dump'
         4        SEND_VAR                                                 !2
         5        DO_ICALL                                                 
   7     6        ASSIGN                                                   !1, <false>
   5     7    >   INIT_FCALL                                               'each'
         8        SEND_REF                                                 !0
         9        DO_ICALL                                         $7      
        10        FETCH_LIST                                       $8      $7, 1
        11        ASSIGN                                                   !2, $8
        12      > JMPZ_EX                                          ~10     $7, ->14
        13    >   BOOL                                             ~10     !1
        14    > > JMPNZ                                                    ~10, ->3
        15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0