3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = $arr = Array ( Array ( "name" => "Size", "value" => "Large", "id" => "1201" ), Array ( "name" => "Size", "value" => "Small", "id" => "1203" ), Array ( "name" => "Size", "value" => "Medium", "id" => "1204" ), Array ( "name" => "Size", "value" => "Large", "id" => "1205" ), Array ( "name" => "Size", "value" => "Large", "id" => "1206" ), Array ( "name" => "Size", "value" => "Large", "id" => "1207" ) ); rsort($arr); $arr = array_values(array_column($arr, NULL, "value")); var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VtgAM
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~1      !0, <array>
          1        ASSIGN                                                   !0, ~1
   48     2        INIT_FCALL                                               'rsort'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
   49     5        INIT_FCALL                                               'array_values'
          6        INIT_FCALL                                               'array_column'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 null
          9        SEND_VAL                                                 'value'
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !0, $5
   50    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.59 ms | 1004 KiB | 17 Q