3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_fill(0, 10000, "some text value"); while ( list($key, $value) = each($array) ) $function($array[$key], $key, $userData);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 7
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 7
Branch analysis from position: 22
Branch analysis from position: 7
filename:       /in/ZgJYP
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array, !1 = $function, !2 = $key, !3 = $userData, !4 = $value
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                                         $5      
          5        ASSIGN                                                   !0, $5
    5     6      > JMP                                                      ->14
    6     7    >   INIT_DYNAMIC_CALL                                        !1
          8        CHECK_FUNC_ARG                                           
          9        FETCH_DIM_FUNC_ARG                               $7      !0, !2
         10        SEND_FUNC_ARG                                            $7
         11        SEND_VAR_EX                                              !2
         12        SEND_VAR_EX                                              !3
         13        DO_FCALL                                      0          
    5    14    >   INIT_FCALL_BY_NAME                                       'each'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $9      
         17        FETCH_LIST_R                                     $10     $9, 0
         18        ASSIGN                                                   !2, $10
         19        FETCH_LIST_R                                     $12     $9, 1
         20        ASSIGN                                                   !4, $12
         21      > JMPNZ                                                    $9, ->7
    6    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.13 ms | 1395 KiB | 15 Q