3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = Array ( '0' => Array ( 'src' => '/wp-content/uploads/2019/09/heythere.jpg', 'source' => 'database' ), '1' => Array ( 'src' => '/wp-content/uploads/2019/09/test.jpg', 'source' => 'database' ) ); $a2 = Array ( '0' => Array ( 'src' => '/wp-content/uploads/2019/09/heythere.jpg', 'source' => 'directory' ), '1' => Array ( 'src' => '/wp-content/uploads/2019/09/demo.jpg', 'source' => 'directory' ), '2' => Array ( 'src' => '/wp-content/uploads/2019/09/image.jpg', 'source' => 'directory' ) ); $u = array_values(array_column(array_merge($a1,$a2), null, 'src')); print_r($u);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gkY3a
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a1, !1 = $a2, !2 = $u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   17     1        ASSIGN                                                   !1, <array>
   39     2        INIT_FCALL                                               'array_values'
          3        INIT_FCALL                                               'array_column'
          4        INIT_FCALL                                               'array_merge'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        SEND_VAL                                                 null
         10        SEND_VAL                                                 'src'
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !2, $7
   40    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.29 ms | 1012 KiB | 17 Q