3v4l.org

run code in 300+ PHP versions simultaneously
<?php while ($row = mysqli_fetch_array($aa, MYSQLI_ASSOC)) { $plotsOpenSpace2 = '111 222 333'; $plotsShell2 = '555 222 444'; $plotsOther2 = '000 999 666'; $entries = array($plotsOpenSpace2, $plotsShell2, $plotsOther2); $test = array(111, 222, 465, 555, 666, 777); foreach ($entries as $key => $entry) { $matches = array_intersect($test, $entry); if (count($matches) > 0) { $i ++; $objPHPExcel->getActiveSheet()->setCellValue('A' . $i, $row['exfreeformcompanyname'].' - '.implode(', ', $matches)); $objPHPExcel->getActiveSheet()->getStyle('A' . $i)->applyFromArray($styleArray)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_TEXT ); } } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
2 jumps found. (Code = 44) Position 1 = 59, Position 2 = 1
Branch analysis from position: 59
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 51
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 51
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 50
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 50
Branch analysis from position: 51
2 jumps found. (Code = 44) Position 1 = 59, Position 2 = 1
Branch analysis from position: 59
Branch analysis from position: 1
Branch analysis from position: 51
filename:       /in/rVU9N
function name:  (null)
number of ops:  60
compiled vars:  !0 = $plotsOpenSpace2, !1 = $plotsShell2, !2 = $plotsOther2, !3 = $entries, !4 = $test, !5 = $entry, !6 = $key, !7 = $matches, !8 = $i, !9 = $objPHPExcel, !10 = $row, !11 = $styleArray, !12 = $aa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > JMP                                                      ->52
    4     1    >   ASSIGN                                                   !0, '111+222+333'
    5     2        ASSIGN                                                   !1, '555+222+444'
    6     3        ASSIGN                                                   !2, '000+999+666'
    8     4        INIT_ARRAY                                       ~16     !0
          5        ADD_ARRAY_ELEMENT                                ~16     !1
          6        ADD_ARRAY_ELEMENT                                ~16     !2
          7        ASSIGN                                                   !3, ~16
    9     8        ASSIGN                                                   !4, <array>
   11     9      > FE_RESET_R                                       $19     !3, ->51
         10    > > FE_FETCH_R                                       ~20     $19, !5, ->51
         11    >   ASSIGN                                                   !6, ~20
   13    12        INIT_FCALL                                               'array_intersect'
         13        SEND_VAR                                                 !4
         14        SEND_VAR                                                 !5
         15        DO_ICALL                                         $22     
         16        ASSIGN                                                   !7, $22
   15    17        COUNT                                            ~24     !7
         18        IS_SMALLER                                               0, ~24
         19      > JMPZ                                                     ~25, ->50
   16    20    >   PRE_INC                                                  !8
   17    21        INIT_METHOD_CALL                                         !9, 'getActiveSheet'
         22        DO_FCALL                                      0  $27     
         23        INIT_METHOD_CALL                                         $27, 'setCellValue'
         24        CONCAT                                           ~28     'A', !8
         25        SEND_VAL_EX                                              ~28
         26        FETCH_DIM_R                                      ~29     !10, 'exfreeformcompanyname'
         27        CONCAT                                           ~30     ~29, '+-+'
         28        INIT_FCALL                                               'implode'
         29        SEND_VAL                                                 '%2C+'
         30        SEND_VAR                                                 !7
         31        DO_ICALL                                         $31     
         32        CONCAT                                           ~32     ~30, $31
         33        SEND_VAL_EX                                              ~32
         34        DO_FCALL                                      0          
   18    35        INIT_METHOD_CALL                                         !9, 'getActiveSheet'
         36        DO_FCALL                                      0  $34     
         37        INIT_METHOD_CALL                                         $34, 'getStyle'
         38        CONCAT                                           ~35     'A', !8
         39        SEND_VAL_EX                                              ~35
         40        DO_FCALL                                      0  $36     
         41        INIT_METHOD_CALL                                         $36, 'applyFromArray'
         42        SEND_VAR_EX                                              !11
         43        DO_FCALL                                      0  $37     
         44        INIT_METHOD_CALL                                         $37, 'getNumberFormat'
         45        DO_FCALL                                      0  $38     
         46        INIT_METHOD_CALL                                         $38, 'setFormatCode'
         47        FETCH_CLASS_CONSTANT                             ~39     'PHPExcel_Style_NumberFormat', 'FORMAT_TEXT'
         48        SEND_VAL_EX                                              ~39
         49        DO_FCALL                                      0          
   11    50    > > JMP                                                      ->10
         51    >   FE_FREE                                                  $19
    2    52    >   INIT_FCALL_BY_NAME                                       'mysqli_fetch_array'
         53        SEND_VAR_EX                                              !12
         54        FETCH_CONSTANT                                   ~41     'MYSQLI_ASSOC'
         55        SEND_VAL_EX                                              ~41
         56        DO_FCALL                                      0  $42     
         57        ASSIGN                                           ~43     !10, $42
         58      > JMPNZ                                                    ~43, ->1
   22    59    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.58 ms | 1400 KiB | 17 Q