3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( 0 => array ( 'admin_id' => '4', 'full_name' => 'Jesse Donat', 'timestamp' => 'Thu, 23 Oct 2014 03:34:40 +0000', ), 1 => array ( 'admin_id' => '4', 'full_name' => 'Jesse Donat', 'timestamp' => 'Thu, 23 Oct 2014 03:34:40 +0000', ), 2 => array ( 'bbq' => 'soda', ), ); print_r($data); $data = array_reduce($data, function ($c, $i) { if (!in_array($i, $carry)) { $c[] = $i; }}, []); print_r($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nd6RN
function name:  (null)
number of ops:  15
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   22     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   23     4        INIT_FCALL                                               'array_reduce'
          5        SEND_VAR                                                 !0
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fnd6RN%3A23%240'
          7        SEND_VAL                                                 ~3
          8        SEND_VAL                                                 <array>
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
   24    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fnd6RN%3A23%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/nd6RN
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $c, !1 = $i, !2 = $carry
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        INIT_FCALL                                               'in_array'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !2
          5        DO_ICALL                                         $3      
          6        BOOL_NOT                                         ~4      $3
          7      > JMPZ                                                     ~4, ->10
          8    >   ASSIGN_DIM                                               !0
          9        OP_DATA                                                  !1
         10    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fnd6RN%3A23%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.28 ms | 1396 KiB | 19 Q