3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_fill(0, 10000, "some text value"); while ( list($key, $value) = each($array) ) $value; //foreach ($array as $key => $value ) $value;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/1NtET
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_fill'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 10000
          3        SEND_VAL                                                 'some+text+value'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    5     6      > JMP                                                      ->7
          7    >   INIT_FCALL_BY_NAME                                       'each'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $5      
         10        FETCH_LIST_R                                     $6      $5, 0
         11        ASSIGN                                                   !2, $6
         12        FETCH_LIST_R                                     $8      $5, 1
         13        ASSIGN                                                   !1, $8
         14      > JMPNZ                                                    $5, ->7
    6    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.4 ms | 1394 KiB | 15 Q