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) use ($modules) { 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/Eit76
function name:  (null)
number of ops:  9
compiled vars:  !0 = $all_permissions, !1 = $modules
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%2FEit76%3A6%240'
          4        BIND_LEXICAL                                             ~3, !1
   10     5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
   11     7        ECHO                                                     !0
          8      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.64 ms | 1399 KiB | 15 Q