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'); function c($a, $b) { print $a['title'] . " " . $b['title'] . "\n"; return 0; } array_udiff($foo, $bar, 'c'); 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/msrRr
function name:  (null)
number of ops:  20
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  <array>
    4     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  <array>
    5     4        ASSIGN_DIM                                               !1
          5        OP_DATA                                                  <array>
    6     6        ASSIGN_DIM                                               !1
          7        OP_DATA                                                  <array>
   13     8        INIT_FCALL                                               'array_udiff'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 'c'
         12        DO_ICALL                                                 
   14    13        INIT_FCALL                                               'array_udiff'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FmsrRr%3A14%240'
         17        SEND_VAL                                                 ~7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/msrRr
function name:  c
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     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
   10     8      > RETURN                                                   0
   11     9*     > RETURN                                                   null

End of function c

Function %00%7Bclosure%7D%2Fin%2FmsrRr%3A14%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/msrRr
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     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%2FmsrRr%3A14%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.58 ms | 1400 KiB | 15 Q