3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vieja = [ ['file' => 'a', 'md5' => '1'], ['file' => 'b', 'md5' => '2'], ['file' => 'c', 'md5' => '3'], ['file' => 'd', 'md5' => '4'], ]; $nueva = [ ['file' => 'a', 'md5' => '2'], ['file' => 'b', 'md5' => '2'], ['file' => 'c', 'md5' => '3'], ['file' => 'd', 'md5' => '4'], ]; var_export( array_uintersect( $nueva, $vieja, fn($a, $b) => $a <=> $b ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lrOsM
function name:  (null)
number of ops:  12
compiled vars:  !0 = $vieja, !1 = $nueva
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, <array>
   17     2        INIT_FCALL                                               'var_export'
   18     3        INIT_FCALL                                               'array_uintersect'
   19     4        SEND_VAR                                                 !1
   20     5        SEND_VAR                                                 !0
   21     6        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
   22     7        SEND_VAL                                                 ~4
   18     8        DO_ICALL                                         $5      
   22     9        SEND_VAR                                                 $5
   17    10        DO_ICALL                                                 
   23    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/lrOsM
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        SPACESHIP                                        ~2      !0, !1
          3      > RETURN                                                   ~2
   22     4*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.99 ms | 1000 KiB | 15 Q