3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array_one = [ (object) ['pa_menu_endpoint' => 1], (object) ['pa_menu_endpoint' => 3], ]; $array_tow = [1, 2, 3, 4]; var_export( array_diff( $array_tow, array_column($array_one, 'pa_menu_endpoint') ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5XBss
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array_one, !1 = $array_tow
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   CAST                                              8  ~2      <array>
          1        INIT_ARRAY                                           ~3      ~2
          2        CAST                                              8  ~4      <array>
          3        ADD_ARRAY_ELEMENT                                    ~3      ~4
    3     4        ASSIGN                                                       !0, ~3
    7     5        ASSIGN                                                       !1, <array>
    9     6        INIT_FCALL                                                   'var_export'
   10     7        INIT_FCALL                                                   'array_diff'
   11     8        SEND_VAR                                                     !1
   12     9        INIT_FCALL                                                   'array_column'
         10        SEND_VAR                                                     !0
         11        SEND_VAL                                                     'pa_menu_endpoint'
         12        DO_ICALL                                             $7      
         13        SEND_VAR                                                     $7
   10    14        DO_ICALL                                             $8      
   12    15        SEND_VAR                                                     $8
    9    16        DO_ICALL                                                     
   14    17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.08 ms | 1713 KiB | 16 Q