3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [ ['acf_fc_layout' => 'irl_today_website_entry', 'irl_today_social' => [ ['data removed'], ['data removed'], ] ], ['acf_fc_layout' => 'irl_today_website_entry', 'irl_today_website' => [[1, 2, 3], [4, 5, 6],[7, 8, 9],] ], ]; $res = array_map(function($x, $y) { $soc = count($x); $web = count($y); return ['soc' => $soc, 'web' => $web]; }, array_column($arrays, "irl_today_social"), array_column($arrays, "irl_today_website")); print_r($res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N7NRA
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arrays, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
   19     3        SEND_VAL                                                 ~3
          4        INIT_FCALL                                               'array_column'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'irl_today_social'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        INIT_FCALL                                               'array_column'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'irl_today_website'
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
   15    14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !1, $6
   22    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N7NRA
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $x, !1 = $y, !2 = $soc, !3 = $web
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   16     2        COUNT                                            ~4      !0
          3        ASSIGN                                                   !2, ~4
   17     4        COUNT                                            ~6      !1
          5        ASSIGN                                                   !3, ~6
   18     6        INIT_ARRAY                                       ~8      !2, 'soc'
          7        ADD_ARRAY_ELEMENT                                ~8      !3, 'web'
          8      > RETURN                                                   ~8
   19     9*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.01 ms | 1013 KiB | 16 Q