3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ ['name' => 'Sony TV', 'price' => '600.00'], ['name' => 'LG TV', 'price' => '350.00'], ['name' => 'Samsung TV', 'price' => '425.00'], ]; $column = 'price'; usort($array, fn($a, $b) => $a[$column] <=> $b[$column]); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u5jFZ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $column
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    9     1        ASSIGN                                                       !1, 'price'
   10     2        INIT_FCALL                                                   'usort'
          3        SEND_REF                                                     !0
          4        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          5        BIND_LEXICAL                                                 ~4, !1
          6        SEND_VAL                                                     ~4
          7        DO_ICALL                                                     
   11     8        INIT_FCALL                                                   'var_export'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                                     
         11      > 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/u5jFZ
function name:  {closure:/in/u5jFZ:10}
number of ops:  8
compiled vars:  !0 = $a, !1 = $b, !2 = $column
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        BIND_STATIC                                                  !2
          3        FETCH_DIM_R                                          ~3      !0, !2
          4        FETCH_DIM_R                                          ~4      !1, !2
          5        SPACESHIP                                            ~5      ~3, ~4
          6      > RETURN                                                       ~5
          7*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.39 ms | 2178 KiB | 15 Q