3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= Array("0" => Array("intTrackId" => 41, "intAverageRating" => 10, "bolNewRelease" => 0 , "dtDateAdded" => "2013-03-08 17:32:26") , "1" => Array("intTrackId" => 1 ,"intAverageRating" => 7 ,"bolNewRelease" => 0 ,"dtDateAdded" => "2013-03-08 18:54:35")); $b=Array("0" => Array("intTrackId" => 41, "intAverageRating" => 5.5000 ,"bolNewRelease" => 1, "dtDateAdded" => "2014-03-25T09:39:28Q") , "1" => Array("intTrackId" => 361 ,"intAverageRating" => 8.0000 ,"bolNewRelease" => "1" , "dtDateAdded" => "2014-03-25T09:39:28Q")) ; foreach($a as $key=>$values) { if($values["intTrackId"] == $b[$key]["intTrackId"]) { unset ($b[$key]); } } print_r($b);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/GBKX5
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $values, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    8     2      > FE_RESET_R                                       $6      !0, ->12
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->12
          4    >   ASSIGN                                                   !3, ~7
   10     5        FETCH_DIM_R                                      ~9      !2, 'intTrackId'
          6        FETCH_DIM_R                                      ~10     !1, !3
          7        FETCH_DIM_R                                      ~11     ~10, 'intTrackId'
          8        IS_EQUAL                                                 ~9, ~11
          9      > JMPZ                                                     ~12, ->11
   12    10    >   UNSET_DIM                                                !1, !3
    8    11    > > JMP                                                      ->3
         12    >   FE_FREE                                                  $6
   17    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.56 ms | 1395 KiB | 15 Q