3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['name' => 'Sony TV', 'price' => '600.00'], ['name' => 'LG TV', 'price' => '350.00'], ['name' => 'Samsung TV', 'price' => '425.00'], ]; $column = 'price'; array_multisort(array_column($array, $column), $array); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NWpFT
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array, !1 = $column
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, 'price'
   10     2        INIT_FCALL                                               'array_multisort'
          3        INIT_FCALL                                               'array_column'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        SEND_VAL                                                 $4
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
   11    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
212.1 ms | 1003 KiB | 16 Q