3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fonts = array( 0 => ["index" => 0, "name" => "Arial", "path" => "assets/fonts/arial.ttf"], 1 => ["index" => 1, "name" => "Times", "path" => "assets/fonts/times.ttf"], 2 => ["index" => 2, "name" => "Roboto", "path" => "assets/fonts/roboto.ttf"], 3 => ["index" => 3, "name" => "AlexBrush", "path" => "assets/fonts/AlexBrush-Regular.ttf"], ); $fonts = array_column($fonts, null, "name"); ksort($fonts); $fonts = array_values($fonts); Var_dump($fonts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pJXfp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $fonts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 null
          4        SEND_VAL                                                 'name'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   10     7        INIT_FCALL                                               'ksort'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
   11    10        INIT_FCALL                                               'array_values'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !0, $5
   12    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:
276.32 ms | 1012 KiB | 17 Q