3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array["1"] = "someval1"; $array["2"] = "someval2"; $array["3"] = "someval3"; $array["10"] = "someval4"; $array["100"] = "someval5"; $array["20"] = "someval6"; $array["200"] = "someval7"; $array["30"] = "someval8"; $array["300"] = "someval9"; var_dump($array); ksort($array, SORT_STRING); var_dump($array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BSGQN
function name:  (null)
number of ops:  29
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 1
          1        OP_DATA                                                  'someval1'
    3     2        ASSIGN_DIM                                               !0, 2
          3        OP_DATA                                                  'someval2'
    4     4        ASSIGN_DIM                                               !0, 3
          5        OP_DATA                                                  'someval3'
    5     6        ASSIGN_DIM                                               !0, 10
          7        OP_DATA                                                  'someval4'
    6     8        ASSIGN_DIM                                               !0, 100
          9        OP_DATA                                                  'someval5'
    7    10        ASSIGN_DIM                                               !0, 20
         11        OP_DATA                                                  'someval6'
    8    12        ASSIGN_DIM                                               !0, 200
         13        OP_DATA                                                  'someval7'
    9    14        ASSIGN_DIM                                               !0, 30
         15        OP_DATA                                                  'someval8'
   10    16        ASSIGN_DIM                                               !0, 300
         17        OP_DATA                                                  'someval9'
   11    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
   12    21        INIT_FCALL                                               'ksort'
         22        SEND_REF                                                 !0
         23        SEND_VAL                                                 2
         24        DO_ICALL                                                 
   13    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
   14    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.01 ms | 1387 KiB | 17 Q