3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = [ ['id'=>182, 'data'=>'foo'], ['id'=>300, 'data'=>'bar'], ['id'=>8, 'data'=>'baz'], ['id'=>52, 'data'=>'bee'] ]; $two = [52, 300]; $result = array_uintersect($one, $two, function($x, $y) { $x = !is_array($x)?:$x['id']; $y = !is_array($y)?:$y['id']; return $x-$y; }); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NETGI
function name:  (null)
number of ops:  13
compiled vars:  !0 = $one, !1 = $two, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   11     2        INIT_FCALL                                               'array_uintersect'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FNETGI%3A11%240'
   16     6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
   11     8        ASSIGN                                                   !2, $6
   18     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FNETGI%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NETGI
function name:  {closure}
number of ops:  17
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   13     2        TYPE_CHECK                                  128  ~2      !0
          3        BOOL_NOT                                         ~3      ~2
          4        JMP_SET                                          ~4      ~3, ->7
          5        FETCH_DIM_R                                      ~5      !0, 'id'
          6        QM_ASSIGN                                        ~4      ~5
          7        ASSIGN                                                   !0, ~4
   14     8        TYPE_CHECK                                  128  ~7      !1
          9        BOOL_NOT                                         ~8      ~7
         10        JMP_SET                                          ~9      ~8, ->13
         11        FETCH_DIM_R                                      ~10     !1, 'id'
         12        QM_ASSIGN                                        ~9      ~10
         13        ASSIGN                                                   !1, ~9
   15    14        SUB                                              ~12     !0, !1
         15      > RETURN                                                   ~12
   16    16*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FNETGI%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.2 ms | 1396 KiB | 17 Q