3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array ( array ( 'cat_id' => 14, 'parent_id' => 2, 'cat_url_title' => '20-a-43m' ), array ( 'cat_id' => 15, 'parent_id' => 3, 'cat_url_title' => '1-a-40m' ), array ( 'cat_id' => 13, 'parent_id' => 2, 'cat_url_title' => '16-a-20m' ), array ( 'cat_id' => 16, 'parent_id' => 3, 'cat_url_title' => '2-a-55m' ), array ( 'cat_id' => 12, 'parent_id' => 2, 'cat_url_title' => '12-a-16m' ) ); usort($array, function($a, $b) { return version_compare($a['cat_url_title'], $b['cat_url_title']); }); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/070Qg
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   32     1        INIT_FCALL                                                   'usort'
          2        SEND_REF                                                     !0
          3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   34     4        SEND_VAL                                                     ~2
   32     5        DO_ICALL                                                     
   35     6        INIT_FCALL                                                   'var_export'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
          9      > 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/070Qg
function name:  {closure:/in/070Qg:32}
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   32     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   33     2        INIT_FCALL                                                   'version_compare'
          3        FETCH_DIM_R                                          ~2      !0, 'cat_url_title'
          4        SEND_VAL                                                     ~2
          5        FETCH_DIM_R                                          ~3      !1, 'cat_url_title'
          6        SEND_VAL                                                     ~3
          7        DO_ICALL                                             $4      
          8      > RETURN                                                       $4
   34     9*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
199.26 ms | 2247 KiB | 16 Q