3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a'=>1, 'b'=>2); $b = true; while(list($key, $value) = each($a) && $b) { var_dump($key, $value); $b = false; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
Branch analysis from position: 13
Branch analysis from position: 13
filename:       /in/pgTSg
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $key, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <true>
    5     2      > JMP                                                      ->8
    6     3    >   INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !2
          5        SEND_VAR                                                 !3
          6        DO_ICALL                                                 
    7     7        ASSIGN                                                   !1, <false>
    5     8    >   INIT_FCALL_BY_NAME                                       'each'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $8      
         11      > JMPZ_EX                                          ~9      $8, ->13
         12    >   BOOL                                             ~9      !1
         13    >   FETCH_LIST_R                                     $10     ~9, 0
         14        ASSIGN                                                   !2, $10
         15        FETCH_LIST_R                                     $12     ~9, 1
         16        ASSIGN                                                   !3, $12
         17      > JMPNZ                                                    ~9, ->3
    8    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.71 ms | 1395 KiB | 18 Q