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/aULfj
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%2FaULfj%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%2FaULfj%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aULfj
function name:  {closure}
number of ops:  19
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        CONCAT                                           ~10     ~9, !0
         13        CONCAT                                           ~11     !1, '%0A'
         14        IS_NOT_EQUAL                                     ~12     ~10, ~11
         15        ECHO                                                     ~12
    8    16        IS_NOT_EQUAL                                     ~13     !0, !1
         17      > RETURN                                                   ~13
    9    18*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.03 ms | 1396 KiB | 17 Q