3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "89098"=> "one", "aaaa123" => "two", "9" => "three", 5 => "four", "7!?2,,--" => "five", ]; uksort($arr, function($a, $b){ return $a > $b; }); var_dump($arr); uksort($arr, function($a, $b){ $a = str_rot13($a); $b = str_rot13($b); return strcmp($a, $b); }); var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OTC4k
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'uksort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   13     4        SEND_VAL                                                 ~2
   11     5        DO_ICALL                                                 
   15     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   17     9        INIT_FCALL                                               'uksort'
         10        SEND_REF                                                 !0
         11        DECLARE_LAMBDA_FUNCTION                          ~5      [1]
   21    12        SEND_VAL                                                 ~5
   17    13        DO_ICALL                                                 
   23    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OTC4k
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2        IS_SMALLER                                       ~2      !1, !0
          3      > RETURN                                                   ~2
   13     4*     > RETURN                                                   null

End of Dynamic Function 0

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

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.78 ms | 1445 KiB | 17 Q