3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = array('status.1', 'status.2', 'status.3', 'country.244', 'country.24', 'country.845', 'pm.4', 'pm.9', 'pm.6'); $groupedData = array_map(function($arg) { [$key, $val] = explode('.', $arg); return array($key => $val); }, $data); var_dump(array_column($groupedData, 'country'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rVQ2T
function name:  (null)
number of ops:  15
compiled vars:  !0 = $data, !1 = $groupedData
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1        INIT_FCALL                                                   'array_map'
          2        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
    8     3        SEND_VAL                                                     ~3
          4        SEND_VAR                                                     !0
    5     5        DO_ICALL                                             $4      
          6        ASSIGN                                                       !1, $4
   10     7        INIT_FCALL                                                   'var_dump'
          8        INIT_FCALL                                                   'array_column'
          9        SEND_VAR                                                     !1
         10        SEND_VAL                                                     'country'
         11        DO_ICALL                                             $6      
         12        SEND_VAR                                                     $6
         13        DO_ICALL                                                     
         14      > 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/rVQ2T
function name:  {closure:/in/rVQ2T:5}
number of ops:  13
compiled vars:  !0 = $arg, !1 = $key, !2 = $val
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
    6     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '.'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $3      
          5        FETCH_LIST_R                                         $4      $3, 0
          6        ASSIGN                                                       !1, $4
          7        FETCH_LIST_R                                         $6      $3, 1
          8        ASSIGN                                                       !2, $6
          9        FREE                                                         $3
    7    10        INIT_ARRAY                                           ~8      !2, !1
         11      > RETURN                                                       ~8
    8    12*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
195.98 ms | 2556 KiB | 17 Q