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_column($fonts, null, "index"); echo $fonts[3]["name"]; //Var_dump($fonts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nCtJf
function name:  (null)
number of ops:  20
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_column'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 null
         13        SEND_VAL                                                 'index'
         14        DO_ICALL                                         $5      
         15        ASSIGN                                                   !0, $5
   13    16        FETCH_DIM_R                                      ~7      !0, 3
         17        FETCH_DIM_R                                      ~8      ~7, 'name'
         18        ECHO                                                     ~8
   16    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.42 ms | 1010 KiB | 15 Q