3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_fill(0, 10000, 'alex'); foreach ($array as $key => $value) { $array[$key] = mt_rand(0, 1000); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/loE4p
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'array_fill'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 10000
          3        SEND_VAL                                                 'alex'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    3     6      > FE_RESET_R                                       $5      !0, ->16
          7    > > FE_FETCH_R                                       ~6      $5, !1, ->16
          8    >   ASSIGN                                                   !2, ~6
    4     9        INIT_FCALL                                               'mt_rand'
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 1000
         12        DO_ICALL                                         $9      
         13        ASSIGN_DIM                                               !0, !2
         14        OP_DATA                                                  $9
    3    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $5
    5    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.54 ms | 1399 KiB | 17 Q