3v4l.org

run code in 300+ PHP versions simultaneously
<?php $repeatedFields = [ 1 => [ 'field' => value] ]; /* go through each page and create a PDF for each one */ foreach ($repeatedFields as $formPage => $fieldContent) { $repeatValues = []; foreach ($fieldContent as $fieldName => $fieldValue) { $repeatValues[$fieldName] = $fieldValue; } } die(var_dump($repeatedFields));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 14
Branch analysis from position: 16
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 16
filename:       /in/pIKOh
function name:  (null)
number of ops:  22
compiled vars:  !0 = $repeatedFields, !1 = $fieldContent, !2 = $formPage, !3 = $repeatValues, !4 = $fieldValue, !5 = $fieldName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_CONSTANT                                   ~6      'value'
          1        INIT_ARRAY                                       ~7      ~6, 'field'
          2        INIT_ARRAY                                       ~8      ~7, 1
    3     3        ASSIGN                                                   !0, ~8
    9     4      > FE_RESET_R                                       $10     !0, ->16
          5    > > FE_FETCH_R                                       ~11     $10, !1, ->16
          6    >   ASSIGN                                                   !2, ~11
   10     7        ASSIGN                                                   !3, <array>
   12     8      > FE_RESET_R                                       $14     !1, ->14
          9    > > FE_FETCH_R                                       ~15     $14, !4, ->14
         10    >   ASSIGN                                                   !5, ~15
   13    11        ASSIGN_DIM                                               !3, !5
         12        OP_DATA                                                  !4
   12    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $14
    9    15      > JMP                                                      ->5
         16    >   FE_FREE                                                  $10
   17    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $18     
         20      > EXIT                                                     $18
         21*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.69 ms | 1395 KiB | 15 Q