3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'A4' => array(), 'B10' => array(), 'D3' => array(), 'A20' => array(), 'A3' => array(), 'D22' => array(), 'D1' => array(), 'C2' => array(), 'B3' => array(), 'A1' => array(), 'B2' => array(), 'C11' => array(), ); ksort($array, SORT_NATURAL); echo implode(', ', array_keys($array)), PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1nW6m
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'ksort'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 6
          4        DO_ICALL                                                 
   14     5        INIT_FCALL                                               'implode'
          6        SEND_VAL                                                 '%2C+'
          7        INIT_FCALL                                               'array_keys'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
         13        ECHO                                                     '%0A'
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.39 ms | 1394 KiB | 19 Q