3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = array( array('value' => '/m/b/mb01-blue-0.jpg'), array('value' => '/m/b/mb04-black-0.jpg'), array('value' => '/m/b/mb04-black-0.jpg'), ); $second = array( 0 => '/m/b/mb01-blue-0.jpg', 1 => '/m/b/mb04-green-0.jpg', 2 => '/m/b/mb04-blue-0.jpg' ); $diff = array_diff(array_column($first, 'value'), $second); print_r($diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/19tgb
function name:  (null)
number of ops:  15
compiled vars:  !0 = $first, !1 = $second, !2 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   15     2        INIT_FCALL                                               'array_diff'
          3        INIT_FCALL                                               'array_column'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'value'
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
   16    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.59 ms | 1001 KiB | 16 Q