3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 0 => [ "qty" => 1, "name" => "Guide, interlocked slats, R Commodity code: 39239000 / Country of origin: PL. Delivery note 838174147 from 12.09.2019 PC 1,50/ 10", ], 1 => [ "qty" => null, "name" => "Guide, interlocked slats, L Commodity code: 39239000 / Country of origin: PL. Delivery note 838174147 from 12.09.2019 PC", ], 2 => [ "qty" => null, "name" => "Bottom groove set L + R Commodity code: 39239000 / Country of origin:", ] ]; $keys = $a[0]; foreach ($a as $item) { foreach ($item as $key => $value) { if ($value === null) { unset($keys[$key]); } if (empty($keys)) { break 2; } } } print_r(array_keys($keys));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 18
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 11
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 16
Branch analysis from position: 18
Branch analysis from position: 18
filename:       /in/GO0lS
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $keys, !2 = $item, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   19     1        FETCH_DIM_R                                      ~6      !0, 0
          2        ASSIGN                                                   !1, ~6
   20     3      > FE_RESET_R                                       $8      !0, ->18
          4    > > FE_FETCH_R                                               $8, !2, ->18
   21     5    > > FE_RESET_R                                       $9      !2, ->16
          6    > > FE_FETCH_R                                       ~10     $9, !3, ->16
          7    >   ASSIGN                                                   !4, ~10
   22     8        TYPE_CHECK                                    2          !3
          9      > JMPZ                                                     ~12, ->11
   23    10    >   UNSET_DIM                                                !1, !4
   26    11    >   ISSET_ISEMPTY_CV                                         !1
         12      > JMPZ                                                     ~13, ->15
   27    13    >   FE_FREE                                                  $9
         14      > JMP                                                      ->18
   21    15    > > JMP                                                      ->6
         16    >   FE_FREE                                                  $9
   20    17      > JMP                                                      ->4
         18    >   FE_FREE                                                  $8
   31    19        INIT_FCALL                                               'print_r'
         20        INIT_FCALL                                               'array_keys'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $14     
         23        SEND_VAR                                                 $14
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.19 ms | 1447 KiB | 15 Q