3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_fill(0, 10000, new stdClass()); foreach ($array as $key => $value) { echo $key . PHP_EOL . $value; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/gKukn
function name:  (null)
number of ops:  17
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        NEW                                              $3      'stdClass'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
    4     8      > FE_RESET_R                                       $7      !0, ->15
          9    > > FE_FETCH_R                                       ~8      $7, !1, ->15
         10    >   ASSIGN                                                   !2, ~8
    5    11        CONCAT                                           ~10     !2, '%0A'
         12        CONCAT                                           ~11     ~10, !1
         13        ECHO                                                     ~11
    4    14      > JMP                                                      ->9
         15    >   FE_FREE                                                  $7
    6    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.54 ms | 1395 KiB | 15 Q