3v4l.org

run code in 500+ PHP versions simultaneously
<?php $one = array(4, 1, 2, 2, 3, 3, 1); $two = array(13, 12, 13, 12); print_r(array_udiff($one, $two, function($a, $b) { $ret = ($a % 10) - ($b % 10); echo "{$a} <=> {$b} == {$ret}\n"; return $ret; }));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fN5Zt
function name:  (null)
number of ops:  12
compiled vars:  !0 = $one, !1 = $two
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    6     2        INIT_FCALL                                                   'print_r'
          3        INIT_FCALL                                                   'array_udiff'
          4        SEND_VAR                                                     !0
          5        SEND_VAR                                                     !1
          6        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
   10     7        SEND_VAL                                                     ~4
    6     8        DO_ICALL                                             $5      
   10     9        SEND_VAR                                                     $5
    6    10        DO_ICALL                                                     
   10    11      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fN5Zt
function name:  {closure:/in/fN5Zt:6}
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $ret
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    7     2        MOD                                                  ~3      !0, 10
          3        MOD                                                  ~4      !1, 10
          4        SUB                                                  ~5      ~3, ~4
          5        ASSIGN                                                       !2, ~5
    8     6        ROPE_INIT                                         6  ~8      !0
          7        ROPE_ADD                                          1  ~8      ~8, '+%3C%3D%3E+'
          8        ROPE_ADD                                          2  ~8      ~8, !1
          9        ROPE_ADD                                          3  ~8      ~8, '+%3D%3D+'
         10        ROPE_ADD                                          4  ~8      ~8, !2
         11        ROPE_END                                          5  ~7      ~8, '%0A'
         12        ECHO                                                         ~7
    9    13      > RETURN                                                       !2
   10    14*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
124.8 ms | 480 KiB | 9 Q