3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ["1","2"]; $b = ["2",3=>[]]; $out = array_udiff($a, $b, function($c, $d) { static $i = 0; echo ++$i. @": $c != $d= ".@$c != @$d.PHP_EOL; return $c != $d; }); var_dump($out);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M7YHd
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_udiff'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FM7YHd%3A5%240'
    9     6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
    5     8        ASSIGN                                                   !2, $6
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FM7YHd%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M7YHd
function name:  {closure}
number of ops:  25
compiled vars:  !0 = $c, !1 = $d, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        BIND_STATIC                                              !2
    7     3        PRE_INC                                          ~3      !2
          4        BEGIN_SILENCE                                    ~4      
          5        ROPE_INIT                                     5  ~6      '%3A+'
          6        ROPE_ADD                                      1  ~6      ~6, !0
          7        ROPE_ADD                                      2  ~6      ~6, '+%21%3D+'
          8        ROPE_ADD                                      3  ~6      ~6, !1
          9        ROPE_END                                      4  ~5      ~6, '%3D+'
         10        END_SILENCE                                              ~4
         11        CONCAT                                           ~9      ~3, ~5
         12        BEGIN_SILENCE                                    ~10     
         13        FETCH_R                      local               ~11     'c'
         14        END_SILENCE                                              ~10
         15        CONCAT                                           ~12     ~9, ~11
         16        BEGIN_SILENCE                                    ~13     
         17        FETCH_R                      local               ~14     'd'
         18        END_SILENCE                                              ~13
         19        CONCAT                                           ~15     ~14, '%0A'
         20        IS_NOT_EQUAL                                     ~16     ~12, ~15
         21        ECHO                                                     ~16
    8    22        IS_NOT_EQUAL                                     ~17     !0, !1
         23      > RETURN                                                   ~17
    9    24*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FM7YHd%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.58 ms | 941 KiB | 18 Q