3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "2" => "abc", "3" => "aBc", "65" => "Abc", "ab" => "abc12", "lkT" => 2, 45 => "test", "This" => "is this", false => "abc012", " " => 22.22, ]; print_r($array); uasort($array, function ($x, $y){ return $x >= $y; }); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ia3rq
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   15     4        INIT_FCALL                                               'uasort'
          5        SEND_REF                                                 !0
          6        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
   17     7        SEND_VAL                                                 ~3
   15     8        DO_ICALL                                                 
   18     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > 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/ia3rq
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   16     2        IS_SMALLER_OR_EQUAL                              ~2      !1, !0
          3      > RETURN                                                   ~2
   17     4*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.96 ms | 1460 KiB | 15 Q