3v4l.org

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

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

End of function %00%7Bclosure%7D%2Fin%2Ff9ulF%3A13%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.83 ms | 1396 KiB | 19 Q