3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sections = [ [ 'sectionwidth' => 525, 'sectionheight' => 500, 'bg' => 'eaeaea', 'sectioncolor' => 'c0c0c0', 'input' => [ [ 'inputtext' => 'test', 'inputwidth' => 505 ], [ 'inputtext' => 'test2', 'inputwidth' => 505 ] ] ], [ 'sectionwidth' => 525, 'sectionheight' => 500, 'bg' => '222222', 'sectioncolor' => 'ffffff', 'input' => [ [ 'inputtext' => 'test3', 'inputwidth' => 505 ], [ 'inputtext' => 'test4', 'inputwidth' => 505 ] ] ], ]; foreach ($sections as $section) { echo '<div style="width: '.$section['sectionwidth'].'px; height: '.$section['sectionheight'].'px; background: #'.$section['bg'].'; color: '.$section['sectioncolor'].'">'; foreach ($section['input'] as $input) { echo '<p style="width: '.$input['inputwidth'].'px;">'.$input['inputtext'].'</p>'; } echo '</div>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 30
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 30
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 27
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 27
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 27
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/6iR4k
function name:  (null)
number of ops:  32
compiled vars:  !0 = $sections, !1 = $section, !2 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   38     1      > FE_RESET_R                                       $4      !0, ->30
          2    > > FE_FETCH_R                                               $4, !1, ->30
   39     3    >   FETCH_DIM_R                                      ~5      !1, 'sectionwidth'
          4        CONCAT                                           ~6      '%3Cdiv+style%3D%22width%3A+', ~5
          5        CONCAT                                           ~7      ~6, 'px%3B+height%3A+'
          6        FETCH_DIM_R                                      ~8      !1, 'sectionheight'
          7        CONCAT                                           ~9      ~7, ~8
          8        CONCAT                                           ~10     ~9, 'px%3B+background%3A+%23'
          9        FETCH_DIM_R                                      ~11     !1, 'bg'
         10        CONCAT                                           ~12     ~10, ~11
         11        CONCAT                                           ~13     ~12, '%3B+color%3A+'
         12        FETCH_DIM_R                                      ~14     !1, 'sectioncolor'
         13        CONCAT                                           ~15     ~13, ~14
         14        CONCAT                                           ~16     ~15, '%22%3E'
         15        ECHO                                                     ~16
   40    16        FETCH_DIM_R                                      ~17     !1, 'input'
         17      > FE_RESET_R                                       $18     ~17, ->27
         18    > > FE_FETCH_R                                               $18, !2, ->27
   41    19    >   FETCH_DIM_R                                      ~19     !2, 'inputwidth'
         20        CONCAT                                           ~20     '%3Cp+style%3D%22width%3A+', ~19
         21        CONCAT                                           ~21     ~20, 'px%3B%22%3E'
         22        FETCH_DIM_R                                      ~22     !2, 'inputtext'
         23        CONCAT                                           ~23     ~21, ~22
         24        CONCAT                                           ~24     ~23, '%3C%2Fp%3E'
         25        ECHO                                                     ~24
   40    26      > JMP                                                      ->18
         27    >   FE_FREE                                                  $18
   43    28        ECHO                                                     '%3C%2Fdiv%3E'
   38    29      > JMP                                                      ->2
         30    >   FE_FREE                                                  $4
   44    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.19 ms | 1399 KiB | 13 Q