3v4l.org

run code in 300+ PHP versions simultaneously
<?php $whiteList = [ ['code' => '123', 'name' => 'ABC',], ['code' => '456', 'name' => 'XYZ',], ]; $pricedList = [ ['code' => '123', 'name' => 'ABC', 'price' => '34'], ['code' => '456', 'name' => 'PQR', 'price' => '56'], ['code' => '456', 'name' => 'XYZ', 'price' => '90'], ['code' => '456', 'name' => 'GHI', 'price' => '70'], ]; var_export( array_uintersect( $pricedList, $whiteList, function($a, $b) { unset($a['price'], $b['price']); return $a <=> $b; } ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y2aiN
function name:  (null)
number of ops:  12
compiled vars:  !0 = $whiteList, !1 = $pricedList
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   15     2        INIT_FCALL                                               'var_export'
   16     3        INIT_FCALL                                               'array_uintersect'
   17     4        SEND_VAR                                                 !1
   18     5        SEND_VAR                                                 !0
   19     6        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
   22     7        SEND_VAL                                                 ~4
   16     8        DO_ICALL                                         $5      
   22     9        SEND_VAR                                                 $5
   15    10        DO_ICALL                                                 
   24    11      > 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/Y2aiN
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   20     2        UNSET_DIM                                                !0, 'price'
          3        UNSET_DIM                                                !1, 'price'
   21     4        SPACESHIP                                        ~2      !0, !1
          5      > RETURN                                                   ~2
   22     6*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
124.96 ms | 1011 KiB | 15 Q