3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ ['Name' => 'Opony', 'Kod' =>'OPO', 'Price' => 100], ['Kod' =>'OLE', 'Name' => 'Olej', 'Price' => 20], ['Kod' =>'ABC', 'Price' => 20, 'Name' => 'abcdefg'] ]; function keySortRow(array $row): array { ksort($row); return $row; } var_export( array_map('keySortRow', $array) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VaZkN
function name:  (null)
number of ops:  9
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_FCALL                                                   'var_export'
   15     2        INIT_FCALL                                                   'array_map'
          3        SEND_VAL                                                     'keySortRow'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                             $2      
          6        SEND_VAR                                                     $2
   14     7        DO_ICALL                                                     
   16     8      > RETURN                                                       1

Function keysortrow:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VaZkN
function name:  keySortRow
number of ops:  8
compiled vars:  !0 = $row
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   RECV                                                 !0      
   10     1        INIT_FCALL                                                   'ksort'
          2        SEND_REF                                                     !0
          3        DO_ICALL                                                     
   11     4        VERIFY_RETURN_TYPE                                           !0
          5      > RETURN                                                       !0
   12     6*       VERIFY_RETURN_TYPE                                           
          7*     > RETURN                                                       null

End of function keysortrow

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.78 ms | 1904 KiB | 16 Q