3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ [ 'project_id' => 1, 'earnest_money_due' => [ 'value' => 1000.00, 'currency' => 'USD', ], ], [ 'project_id' => 2, 'earnest_money_due' => [ 'value' => 200.00, 'currency' => 'USD', ], ], [ 'project_id' => 3, 'earnest_money_due' => [ 'value' => 900.00, 'currency' => 'USD', ], ], ]; array_multisort(array_map(fn($row) => $row['earnest_money_due']['value'], $array), $array); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gBigv
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   27     1        INIT_FCALL                                                   'array_multisort'
          2        INIT_FCALL                                                   'array_map'
          3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          4        SEND_VAL                                                     ~2
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $3      
          7        SEND_VAL                                                     $3
          8        SEND_REF                                                     !0
          9        DO_ICALL                                                     
   28    10        INIT_FCALL                                                   'var_export'
         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/gBigv
function name:  {closure:/in/gBigv:27}
number of ops:  5
compiled vars:  !0 = $row
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   27     0  E >   RECV                                                 !0      
          1        FETCH_DIM_R                                          ~1      !0, 'earnest_money_due'
          2        FETCH_DIM_R                                          ~2      ~1, 'value'
          3      > RETURN                                                       ~2
          4*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.12 ms | 2002 KiB | 16 Q