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 = 16, Position 2 = 17
Branch analysis from position: 16
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 = 16, Position 2 = 17
Branch analysis from position: 16
Branch analysis from position: 17
Branch analysis from position: 17
filename:       /in/Etoh0
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        FETCH_LIST_R                                     $9      $8, 0
         12        ASSIGN                                                   !2, $9
         13        FETCH_LIST_R                                     $11     $8, 1
         14        ASSIGN                                                   !3, $11
         15      > JMPZ_EX                                          ~13     $8, ->17
         16    >   BOOL                                             ~13     !1
         17    > > JMPNZ                                                    ~13, ->3
    8    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.47 ms | 1386 KiB | 15 Q