3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = Array ( 0 => Array ( 'name' => 'Nakiya', 'country' => 'USA', 'id' => 3, ), 1 => Array ( 'name' => 'Taylor', 'country' => 'UK', 'id' => 2, ), 2 => Array ( 'name' => 'Jack', 'country' => 'France', 'id' => 1, ) ); array_multisort(array_map(function($element) { return $element['country']; }, $array), SORT_ASC, $array); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IP9N9
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   29     1        INIT_FCALL                                                   'array_multisort'
          2        INIT_FCALL                                                   'array_map'
          3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   31     4        SEND_VAL                                                     ~2
          5        SEND_VAR                                                     !0
   29     6        DO_ICALL                                             $3      
   31     7        SEND_VAL                                                     $3
          8        SEND_VAL                                                     4
          9        SEND_REF                                                     !0
   29    10        DO_ICALL                                                     
   33    11        INIT_FCALL                                                   'print_r'
         12        SEND_VAR                                                     !0
         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/IP9N9
function name:  {closure:/in/IP9N9:29}
number of ops:  4
compiled vars:  !0 = $element
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   29     0  E >   RECV                                                 !0      
   30     1        FETCH_DIM_R                                          ~1      !0, 'country'
          2      > RETURN                                                       ~1
   31     3*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.65 ms | 2324 KiB | 16 Q