3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 1 => "one", "two" => "two", 3.01 => "three", "4" => "four", false => "five", ]; krsort($arr, SORT_STRING); var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mDad0
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                       ~1      'one', 1
    5     1        ADD_ARRAY_ELEMENT                                ~1      'two', 'two'
    6     2        ADD_ARRAY_ELEMENT                                ~1      'three', 3.01
    7     3        ADD_ARRAY_ELEMENT                                ~1      'four', 4
    8     4        ADD_ARRAY_ELEMENT                                ~1      'five', <false>
    3     5        ASSIGN                                                   !0, ~1
   11     6        INIT_FCALL                                               'krsort'
          7        SEND_REF                                                 !0
          8        SEND_VAL                                                 2
          9        DO_ICALL                                                 
   13    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141 ms | 1436 KiB | 15 Q