3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Get a list of all the modules providing permissions and sort by // display name. $all_permissions = [array('title' => 'access_module_a2'), array('title' => 'access_module_a1')]; uasort($all_permissions, function (array $permission_a, array $permission_b) { return $permission_a['title'] > $permission_b['title']; }); echo $all_permissions;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F2jdP
function name:  (null)
number of ops:  8
compiled vars:  !0 = $all_permissions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'uasort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FF2jdP%3A6%240'
   10     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   11     6        ECHO                                                     !0
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FF2jdP%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F2jdP
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $permission_a, !1 = $permission_b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        FETCH_DIM_R                                      ~2      !0, 'title'
          3        FETCH_DIM_R                                      ~3      !1, 'title'
          4        IS_SMALLER                                       ~4      ~3, ~2
          5      > RETURN                                                   ~4
   10     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FF2jdP%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.41 ms | 1395 KiB | 15 Q