3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "0" => [ "UserID" => "1", "EmailAddress" => "user5@gmail.com", "TransID" => "fjhf8f7848", "email" => "asdashdk@gmail.com" ], "1" => [ "UserID" => "1", "EmailAddress" => "johndoe@gmail.com", "TransID" => "dfsdhsdu78", "email" => "rrrrrrr@gmail.com" ], ]; foreach($arr as &$item){ uksort($item, function ($a, $b) { $a = strtolower($a); $b = strtolower($b); return strcmp($a, $b); }); } print_r($arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/Pl6SD
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   22     1      > FE_RESET_RW                                      $3      !0, ->9
          2    > > FE_FETCH_RW                                              $3, !1, ->9
   23     3    >   INIT_FCALL                                               'uksort'
          4        SEND_REF                                                 !1
          5        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
   27     6        SEND_VAL                                                 ~4
   23     7        DO_ICALL                                                 
   22     8      > JMP                                                      ->2
          9    >   FE_FREE                                                  $3
   29    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > 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/Pl6SD
function name:  {closure}
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   24     2        INIT_FCALL                                               'strtolower'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
   25     6        INIT_FCALL                                               'strtolower'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
   26    10        INIT_FCALL                                               'strcmp'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $6      
         14      > RETURN                                                   $6
   27    15*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.07 ms | 1014 KiB | 17 Q