3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ ["name" => "Mr San", "department" => "five"], ["name" => "Mr VSan", "department" => "six"], ["name" => "Mr QSan", "department" => "four"], ["name" => "Sr ASan", "department" => "two"], ["name" => "Dr ASan", "department" => "one"], ["name" => "Dr FSan", "department" => "three"] ]; array_multisort(preg_replace('/^[^ ]+ /', '', array_column($data, 'name')), $data); var_export($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gg6E7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'array_multisort'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5E%5B%5E+%5D%2B+%2F'
          4        SEND_VAL                                                 ''
          5        INIT_FCALL                                               'array_column'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'name'
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                         $3      
         11        SEND_VAL                                                 $3
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
   14    14        INIT_FCALL                                               'var_export'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.94 ms | 1398 KiB | 21 Q