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")) ; $res = array(); foreach($a as $key=>$values) { if($values["intTrackId"] == $b[$key]["intTrackId"]) { $res=""; break; } else { $res=$values; } } print_r($res);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 16
Branch analysis from position: 16
filename:       /in/fAF1k
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $res, !3 = $values, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    8     2        ASSIGN                                                   !2, <array>
   10     3      > FE_RESET_R                                       $8      !0, ->16
          4    > > FE_FETCH_R                                       ~9      $8, !3, ->16
          5    >   ASSIGN                                                   !4, ~9
   12     6        FETCH_DIM_R                                      ~11     !3, 'intTrackId'
          7        FETCH_DIM_R                                      ~12     !1, !4
          8        FETCH_DIM_R                                      ~13     ~12, 'intTrackId'
          9        IS_EQUAL                                                 ~11, ~13
         10      > JMPZ                                                     ~14, ->14
   14    11    >   ASSIGN                                                   !2, ''
   15    12      > JMP                                                      ->16
         13*       JMP                                                      ->15
   19    14    >   ASSIGN                                                   !2, !3
   10    15      > JMP                                                      ->4
         16    >   FE_FREE                                                  $8
   23    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.99 ms | 1395 KiB | 15 Q