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_udiff( $array_tow, $array_one, fn($a, $b) => ($a->pa_menu_endpoint ?? $a) <=> ($b->pa_menu_endpoint ?? $b) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H7Kd5
function name:  (null)
number of ops:  16
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_udiff'
   11     8        SEND_VAR                                                     !1
   12     9        SEND_VAR                                                     !0
   13    10        DECLARE_LAMBDA_FUNCTION                              ~7      [0]
   14    11        SEND_VAL                                                     ~7
   10    12        DO_ICALL                                             $8      
   14    13        SEND_VAR                                                     $8
    9    14        DO_ICALL                                                     
   15    15      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H7Kd5
function name:  {closure:/in/H7Kd5:13}
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        FETCH_OBJ_IS                                         ~2      !0, 'pa_menu_endpoint'
          3        COALESCE                                             ~3      ~2
          4        QM_ASSIGN                                            ~3      !0
          5        FETCH_OBJ_IS                                         ~4      !1, 'pa_menu_endpoint'
          6        COALESCE                                             ~5      ~4
          7        QM_ASSIGN                                            ~5      !1
          8        SPACESHIP                                            ~6      ~3, ~5
          9      > RETURN                                                       ~6
   14    10*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.51 ms | 1719 KiB | 14 Q