3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( array('id' => 1, 'name' => 'bar'), array('id' => 0, 'name' => 'foo'), ); $b = array( array('id' => 0, 'name' => 'foo'), array('id' => 2, 'name' => 'baz'), ); var_dump(array_uintersect($a, $b, function($a, $b) { if ($a === $b) { return 0; } elseif ($a > $b) { return 1; } else { return -1; } }));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DmZH5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   14     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'array_uintersect'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FDmZH5%3A14%240'
   22     7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FDmZH5%3A14%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DmZH5
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   15     2        IS_IDENTICAL                                             !0, !1
          3      > JMPZ                                                     ~2, ->6
   16     4    > > RETURN                                                   0
          5*       JMP                                                      ->11
   17     6    >   IS_SMALLER                                               !1, !0
          7      > JMPZ                                                     ~3, ->10
   18     8    > > RETURN                                                   1
          9*       JMP                                                      ->11
   20    10    > > RETURN                                                   -1
   22    11*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FDmZH5%3A14%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.67 ms | 1396 KiB | 17 Q