3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pages = [ 'a2' => ['title' => '.a'], 'a1' => ['title' => 'A'], 'c1' => ['title' => 'C'], 'c2' => ['title' => 'C100'], 'c3' => ['title' => 'C3'], 'c4' => ['title' => 'c22'], 'b' => ['title' => 'B'], 'c25' => ['title' => 'c'], 'n' => ['title' => '.N'], ]; $titles = array_column($pages, 'title'); array_multisort( preg_replace('/^[^0-9a-z]+/i', '', $titles), SORT_STRING|SORT_FLAG_CASE, $titles ); echo implode(', ', $titles);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MERsX
function name:  (null)
number of ops:  22
compiled vars:  !0 = $pages, !1 = $titles
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'title'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   17     6        INIT_FCALL                                               'array_multisort'
   18     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F%5E%5B%5E0-9a-z%5D%2B%2Fi'
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        SEND_VAL                                                 $5
   19    13        SEND_VAL                                                 10
   20    14        SEND_REF                                                 !1
   17    15        DO_ICALL                                                 
   23    16        INIT_FCALL                                               'implode'
         17        SEND_VAL                                                 '%2C+'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $7      
         20        ECHO                                                     $7
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.92 ms | 1013 KiB | 17 Q