3v4l.org

run code in 300+ PHP versions simultaneously
<?php $clashes = [ [ "s1_id" => 26, "s2_id" => 27 ], [ "s1_id" => 27, "s2_id" => 27 ] ]; array_walk($clashes, function (&$item, $key) { $item = array_unique($item); }, array()); var_dump($clashes);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TFTdG
function name:  (null)
number of ops:  11
compiled vars:  !0 = $clashes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTFTdG%3A14%240'
   16     4        SEND_VAL                                                 ~2
          5        SEND_VAL                                                 <array>
          6        DO_ICALL                                                 
   18     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FTFTdG%3A14%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TFTdG
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $item, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   15     2        INIT_FCALL                                               'array_unique'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
   16     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTFTdG%3A14%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.32 ms | 1395 KiB | 19 Q