3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arraya = array( 'http://www.simplyathome.nl/partners/' => array( 'links' => array( 'http://www.eerenstein.nl/assortiment/goedkope-sigma-verf', 'https://www.kooistra-detectors.eu/', ), ), 'http://www.helex.nl/links/' => array( 'links' => array( 'https://www.kooistra-detectors.eu/', 'http://www.debruidslakei.nl/bruidsmode-alkmaar/', 'https://kubes.nl/', ), ), ); $arrayb = array( 'http://www.simplyathome.nl/partners/' => array( 'links' => array( 'https://www.google.nl/', 'http://www.eerenstein.nl/assortiment/goedkope-sigma-verf', ), ), 'http://www.helex.nl/links/' => array( 'links' => array( 'https://facebook.nl/', 'https://www.kooistra-detectors.eu/', 'http://www.debruidslakei.nl/bruidsmode-alkmaar/', //'https://kubes.nl/', 'http://example.com/', ), ), ); $final = array(); foreach ($arrayb as $keyb => $valueb) { if (in_array($valueb, $arraya[$keyb]['links'])) { unset($arraya[$keyb]['links'][$valueb]); //$final[$keya][$valuea]; } } //$arrayb = array_values($arrayb); print_r($arraya);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 16
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/0N4qM
function name:  (null)
number of ops:  22
compiled vars:  !0 = $arraya, !1 = $arrayb, !2 = $final, !3 = $valueb, !4 = $keyb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   19     1        ASSIGN                                                   !1, <array>
   38     2        ASSIGN                                                   !2, <array>
   40     3      > FE_RESET_R                                       $8      !1, ->17
          4    > > FE_FETCH_R                                       ~9      $8, !3, ->17
          5    >   ASSIGN                                                   !4, ~9
   41     6        INIT_FCALL                                               'in_array'
          7        SEND_VAR                                                 !3
          8        FETCH_DIM_R                                      ~11     !0, !4
          9        FETCH_DIM_R                                      ~12     ~11, 'links'
         10        SEND_VAL                                                 ~12
         11        DO_ICALL                                         $13     
         12      > JMPZ                                                     $13, ->16
   42    13    >   FETCH_DIM_UNSET                                  $14     !0, !4
         14        FETCH_DIM_UNSET                                  $15     $14, 'links'
         15        UNSET_DIM                                                $15, !3
   40    16    > > JMP                                                      ->4
         17    >   FE_FREE                                                  $8
   48    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.97 ms | 1395 KiB | 17 Q