3v4l.org

run code in 500+ PHP versions simultaneously
<?php $product = []; for ($k = 0; $k <= 100; $k++) { $options = []; for ($j = 0; $j <= 10; $j++) { $optionItems = []; for ($i = 0; $i <= 100; $i++) { $optionItems[] = array( 'title' => 'OptionItem' . $i, 'description' => 'OptionItem ' . $i . ' Description', 'price' => random_int(1000, 10000) ); } $options[] = array( 'title' => 'Option' . $j, 'description' => 'Option ' . $j . ' Description', 'price' => random_int(1000, 10000), 'items' => $optionItems ); } $product[] = array( 'title' => 'Product' . $k, 'description' => 'Product ' . $k . ' Description', 'price' => random_int(1000, 10000), 'currency' => 'USD', 'category' => 'Category' . $k, 'brand' => 'Brand' . $k, 'options' => $options ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 3
Branch analysis from position: 61
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 6
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 3
Branch analysis from position: 61
Branch analysis from position: 3
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 9
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 6
Branch analysis from position: 40
Branch analysis from position: 6
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 9
Branch analysis from position: 24
Branch analysis from position: 9
filename:       /in/h08dj
function name:  (null)
number of ops:  62
compiled vars:  !0 = $product, !1 = $k, !2 = $options, !3 = $j, !4 = $optionItems, !5 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        ASSIGN                                                       !1, 0
          2      > JMP                                                          ->59
    4     3    >   ASSIGN                                                       !2, <array>
    5     4        ASSIGN                                                       !3, 0
          5      > JMP                                                          ->38
    6     6    >   ASSIGN                                                       !4, <array>
    7     7        ASSIGN                                                       !5, 0
          8      > JMP                                                          ->22
    9     9    >   CONCAT                                               ~13     'OptionItem', !5
         10        INIT_ARRAY                                           ~14     ~13, 'title'
   10    11        CONCAT                                               ~15     'OptionItem+', !5
         12        CONCAT                                               ~16     ~15, '+Description'
         13        ADD_ARRAY_ELEMENT                                    ~14     ~16, 'description'
   11    14        INIT_FCALL                                                   'random_int'
         15        SEND_VAL                                                     1000
         16        SEND_VAL                                                     10000
         17        DO_ICALL                                             $17     
         18        ADD_ARRAY_ELEMENT                                    ~14     $17, 'price'
    8    19        ASSIGN_DIM                                                   !4
   11    20        OP_DATA                                                      ~14
    7    21        PRE_INC                                                      !5
         22    >   IS_SMALLER_OR_EQUAL                                          !5, 100
         23      > JMPNZ                                                        ~19, ->9
   16    24    >   CONCAT                                               ~21     'Option', !3
         25        INIT_ARRAY                                           ~22     ~21, 'title'
   17    26        CONCAT                                               ~23     'Option+', !3
         27        CONCAT                                               ~24     ~23, '+Description'
         28        ADD_ARRAY_ELEMENT                                    ~22     ~24, 'description'
   18    29        INIT_FCALL                                                   'random_int'
         30        SEND_VAL                                                     1000
         31        SEND_VAL                                                     10000
         32        DO_ICALL                                             $25     
         33        ADD_ARRAY_ELEMENT                                    ~22     $25, 'price'
   19    34        ADD_ARRAY_ELEMENT                                    ~22     !4, 'items'
   15    35        ASSIGN_DIM                                                   !2
   19    36        OP_DATA                                                      ~22
    5    37        PRE_INC                                                      !3
         38    >   IS_SMALLER_OR_EQUAL                                          !3, 10
         39      > JMPNZ                                                        ~27, ->6
   23    40    >   CONCAT                                               ~29     'Product', !1
         41        INIT_ARRAY                                           ~30     ~29, 'title'
   24    42        CONCAT                                               ~31     'Product+', !1
         43        CONCAT                                               ~32     ~31, '+Description'
         44        ADD_ARRAY_ELEMENT                                    ~30     ~32, 'description'
   25    45        INIT_FCALL                                                   'random_int'
         46        SEND_VAL                                                     1000
         47        SEND_VAL                                                     10000
         48        DO_ICALL                                             $33     
         49        ADD_ARRAY_ELEMENT                                    ~30     $33, 'price'
   26    50        ADD_ARRAY_ELEMENT                                    ~30     'USD', 'currency'
   27    51        CONCAT                                               ~34     'Category', !1
         52        ADD_ARRAY_ELEMENT                                    ~30     ~34, 'category'
   28    53        CONCAT                                               ~35     'Brand', !1
         54        ADD_ARRAY_ELEMENT                                    ~30     ~35, 'brand'
   29    55        ADD_ARRAY_ELEMENT                                    ~30     !2, 'options'
   22    56        ASSIGN_DIM                                                   !0
   29    57        OP_DATA                                                      ~30
    3    58        PRE_INC                                                      !1
         59    >   IS_SMALLER_OR_EQUAL                                          !1, 100
         60      > JMPNZ                                                        ~37, ->3
   31    61    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.04 ms | 1377 KiB | 14 Q