3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( array ( 'Size', 'variation_id' => array ( 'S', 'M', 'L', 'XL' ) ), array ( 'Length', 'variation_id' => array ( '14 Inches', '18 Inches', ) ) ); $sizes = $data[0]['variation_id']; $lengths = $data[1]['variation_id']; $result = array(); foreach($sizes as $size) foreach($lengths as $length) $result[] = "variation ($size, $length)"; var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 22
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 22
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 20
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/eFUMf
function name:  (null)
number of ops:  27
compiled vars:  !0 = $data, !1 = $sizes, !2 = $lengths, !3 = $result, !4 = $size, !5 = $length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   20     1        FETCH_DIM_R                                      ~7      !0, 0
          2        FETCH_DIM_R                                      ~8      ~7, 'variation_id'
          3        ASSIGN                                                   !1, ~8
   21     4        FETCH_DIM_R                                      ~10     !0, 1
          5        FETCH_DIM_R                                      ~11     ~10, 'variation_id'
          6        ASSIGN                                                   !2, ~11
   23     7        ASSIGN                                                   !3, <array>
   24     8      > FE_RESET_R                                       $14     !1, ->22
          9    > > FE_FETCH_R                                               $14, !4, ->22
   25    10    > > FE_RESET_R                                       $15     !2, ->20
         11    > > FE_FETCH_R                                               $15, !5, ->20
   26    12    >   ROPE_INIT                                     5  ~18     'variation+%28'
         13        ROPE_ADD                                      1  ~18     ~18, !4
         14        ROPE_ADD                                      2  ~18     ~18, '%2C+'
         15        ROPE_ADD                                      3  ~18     ~18, !5
         16        ROPE_END                                      4  ~17     ~18, '%29'
         17        ASSIGN_DIM                                               !3
         18        OP_DATA                                                  ~17
   25    19      > JMP                                                      ->11
         20    >   FE_FREE                                                  $15
   24    21      > JMP                                                      ->9
         22    >   FE_FREE                                                  $14
   28    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.73 ms | 1396 KiB | 15 Q