3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('motes' => 3, 'shards' => 5, 'fragments' => 5); uksort($array, function ($a, $b) use ($array) { if ($array[$a] < $array[$b]) return 1; elseif ($array[$a] > $array[$b]) return -1; else return strcmp($a, $b); }); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RTRV1
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'uksort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          4        BIND_LEXICAL                                             ~2, !0
    7     5        SEND_VAL                                                 ~2
    4     6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RTRV1
function name:  {closure}
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
    5     3        FETCH_DIM_R                                      ~3      !2, !0
          4        FETCH_DIM_R                                      ~4      !2, !1
          5        IS_SMALLER                                               ~3, ~4
          6      > JMPZ                                                     ~5, ->9
          7    > > RETURN                                                   1
          8*       JMP                                                      ->20
    6     9    >   FETCH_DIM_R                                      ~6      !2, !0
         10        FETCH_DIM_R                                      ~7      !2, !1
         11        IS_SMALLER                                               ~7, ~6
         12      > JMPZ                                                     ~8, ->15
         13    > > RETURN                                                   -1
         14*       JMP                                                      ->20
    7    15    >   INIT_FCALL                                               'strcmp'
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $9      
         19      > RETURN                                                   $9
         20*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
304.42 ms | 1008 KiB | 16 Q