3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= [['a', 10], ['b', 11], ['c', 12], ['d', 13]]; $b = [['k', 21], ['l', 22], ['m', 23], ['n', 24], ['o', 25]]; $diff = array_udiff($a, $b, function($o1, $o2) { echo 'comparing ' . $o1[0] . ', ' . $o2[0] . PHP_EOL; return $o1[1] - $o2[1]; }); var_dump($diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7vcMk
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'array_udiff'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F7vcMk%3A7%240'
   10     6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
    7     8        ASSIGN                                                   !2, $6
   12     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F7vcMk%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7vcMk
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $o1, !1 = $o2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        FETCH_DIM_R                                      ~2      !0, 0
          3        CONCAT                                           ~3      'comparing+', ~2
          4        CONCAT                                           ~4      ~3, '%2C+'
          5        FETCH_DIM_R                                      ~5      !1, 0
          6        CONCAT                                           ~6      ~4, ~5
          7        CONCAT                                           ~7      ~6, '%0A'
          8        ECHO                                                     ~7
    9     9        FETCH_DIM_R                                      ~8      !0, 1
         10        FETCH_DIM_R                                      ~9      !1, 1
         11        SUB                                              ~10     ~8, ~9
         12      > RETURN                                                   ~10
   10    13*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F7vcMk%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.56 ms | 1396 KiB | 17 Q