3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'list[P] = 1', 'list[A] = 1', 'list[F] = 2', 'list[B] = 1' ]; array_multisort( preg_replace('#\D+#', '', $array), SORT_ASC, SORT_NUMERIC, array_keys($array), $array ); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mha5D
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'array_multisort'
   11     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%23%5CD%2B%23'
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAL                                                 $2
   12     8        SEND_VAL                                                 4
   13     9        SEND_VAL                                                 1
   14    10        INIT_FCALL                                               'array_keys'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $3      
         13        SEND_VAL                                                 $3
   15    14        SEND_REF                                                 !0
   10    15        DO_ICALL                                                 
   18    16        INIT_FCALL                                               'var_export'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.29 ms | 1012 KiB | 17 Q