3v4l.org

run code in 500+ PHP versions simultaneously
<?php $test = [ 'key1' => [ 'title' => 'title' ], 'key2' => [ 'title' => 'title' ] ]; uasort($test, function (array $a, array $b) { return $a['title'] > $b['title']; }); var_dump($test); var_dump($test['key1']['title'] > $test['key2']['title']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e6noO
function name:  (null)
number of ops:  18
compiled vars:  !0 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   12     1        INIT_FCALL                                                   'uasort'
          2        SEND_REF                                                     !0
          3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   14     4        SEND_VAL                                                     ~2
   12     5        DO_ICALL                                                     
   15     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
   16     9        INIT_FCALL                                                   'var_dump'
         10        FETCH_DIM_R                                          ~5      !0, 'key1'
         11        FETCH_DIM_R                                          ~6      ~5, 'title'
         12        FETCH_DIM_R                                          ~7      !0, 'key2'
         13        FETCH_DIM_R                                          ~8      ~7, 'title'
         14        IS_SMALLER                                           ~9      ~8, ~6
         15        SEND_VAL                                                     ~9
         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/e6noO
function name:  {closure:/in/e6noO:12}
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   13     2        FETCH_DIM_R                                          ~2      !0, 'title'
          3        FETCH_DIM_R                                          ~3      !1, 'title'
          4        IS_SMALLER                                           ~4      ~3, ~2
          5      > RETURN                                                       ~4
   14     6*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.1 ms | 2911 KiB | 14 Q