3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo[] = array('id' => 1, 'title' => 'ONE'); $foo[] = array('id' => 2, 'title' => 'TWO'); $bar[] = array('id' => 2, 'title' => 'dos'); $bar[] = array('id' => 2, 'title' => 'tres'); array_udiff($foo, $bar, function($a, $b) { print $a['title'] . " " . $b['title'] . "\n"; return 0;});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J7QIt
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  <array>
    3     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  <array>
    4     4        ASSIGN_DIM                                               !1
          5        OP_DATA                                                  <array>
    5     6        ASSIGN_DIM                                               !1
          7        OP_DATA                                                  <array>
    7     8        INIT_FCALL                                               'array_udiff'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FJ7QIt%3A7%240'
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.5 ms | 1387 KiB | 15 Q