3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ "playerid" => 1055, "firstname" => "Christian", "lastname" => "McCaffrey", "age" => 27 ], [ "playerid" => 1362, "firstname" => "A.J.", "lastname" => "Brown", "age" => 26 ], [ "playerid" => 1897, "firstname" => "Joe", "lastname" => "Burrow", "age" => 27 ], [ "playerid" => 2019, "firstname" => "De'Von", "lastname" => "Achane", "age" => 22 ] ]; $blacklist = [1055, 1495, 1497, 1897, 1775]; var_export( array_udiff( $array, $blacklist, fn($a, $b) => ($a['playerid'] ?? $a) <=> ($b['playerid'] ?? $b) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HvkJs
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $blacklist
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   30     1        ASSIGN                                                   !1, <array>
   32     2        INIT_FCALL                                               'var_export'
   33     3        INIT_FCALL                                               'array_udiff'
   34     4        SEND_VAR                                                 !0
   35     5        SEND_VAR                                                 !1
   36     6        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
   40     7        SEND_VAL                                                 ~4
   33     8        DO_ICALL                                         $5      
   40     9        SEND_VAR                                                 $5
   32    10        DO_ICALL                                                 
   41    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/HvkJs
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   37     2        FETCH_DIM_IS                                     ~2      !0, 'playerid'
          3        COALESCE                                         ~3      ~2
          4        QM_ASSIGN                                        ~3      !0
   39     5        FETCH_DIM_IS                                     ~4      !1, 'playerid'
          6        COALESCE                                         ~5      ~4
          7        QM_ASSIGN                                        ~5      !1
          8        SPACESHIP                                        ~6      ~3, ~5
          9      > RETURN                                                   ~6
   40    10*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.18 ms | 1003 KiB | 15 Q