3v4l.org

run code in 300+ PHP versions simultaneously
<?php $emails = [ (object) ['email' => 'a'], (object) ['email' => 'b'], (object) ['email' => 'c'] ]; $userEmails = [ (object) ['user_email' => 'c'], (object) ['user_email' => 'a'], (object) ['user_email' => 'd'] ]; var_export( array_udiff( $emails, $userEmails, fn($a, $b) => ($a->email ?? $a->user_email) <=> ($b->email ?? $b->user_email) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RG44S
function name:  (null)
number of ops:  24
compiled vars:  !0 = $emails, !1 = $userEmails
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          8  ~2      <array>
          1        INIT_ARRAY                                       ~3      ~2
    5     2        CAST                                          8  ~4      <array>
          3        ADD_ARRAY_ELEMENT                                ~3      ~4
    6     4        CAST                                          8  ~5      <array>
          5        ADD_ARRAY_ELEMENT                                ~3      ~5
    3     6        ASSIGN                                                   !0, ~3
    9     7        CAST                                          8  ~7      <array>
          8        INIT_ARRAY                                       ~8      ~7
   10     9        CAST                                          8  ~9      <array>
         10        ADD_ARRAY_ELEMENT                                ~8      ~9
   11    11        CAST                                          8  ~10     <array>
         12        ADD_ARRAY_ELEMENT                                ~8      ~10
    8    13        ASSIGN                                                   !1, ~8
   14    14        INIT_FCALL                                               'var_export'
   15    15        INIT_FCALL                                               'array_udiff'
   16    16        SEND_VAR                                                 !0
   17    17        SEND_VAR                                                 !1
   18    18        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FRG44S%3A18%240'
   19    19        SEND_VAL                                                 ~12
         20        DO_ICALL                                         $13     
         21        SEND_VAR                                                 $13
         22        DO_ICALL                                                 
   20    23      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FRG44S%3A18%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RG44S
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        FETCH_OBJ_IS                                     ~2      !0, 'email'
          3        COALESCE                                         ~3      ~2
          4        FETCH_OBJ_R                                      ~4      !0, 'user_email'
          5        QM_ASSIGN                                        ~3      ~4
          6        FETCH_OBJ_IS                                     ~5      !1, 'email'
          7        COALESCE                                         ~6      ~5
          8        FETCH_OBJ_R                                      ~7      !1, 'user_email'
          9        QM_ASSIGN                                        ~6      ~7
         10        SPACESHIP                                        ~8      ~3, ~6
         11      > RETURN                                                   ~8
   19    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FRG44S%3A18%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.71 ms | 1407 KiB | 17 Q