3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_fill(0, 10000, 'alex'); foreach ($array as $key => &$value) { $value = mt_rand(0, 1000); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/d7PTE
function name:  (null)
number of ops:  17
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_RW                                      $5      !0, ->15
          7    > > FE_FETCH_RW                                      ~6      $5, !1, ->15
          8    >   ASSIGN                                                   !2, ~6
    4     9        INIT_FCALL                                               'mt_rand'
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 1000
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
    3    14      > JMP                                                      ->7
         15    >   FE_FREE                                                  $5
    5    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.22 ms | 1395 KiB | 17 Q