3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 0 => Array ( 'hashtag' => a7e87329b5eab8578f4f1098a152d6f4, 'title' => Flower, 'order' => 3, ), 1 => Array ( 'hashtag' => b24ce0cd392a5b0b8dedc66c25213594, 'title' => Free, 'order' => 2, ), 2 => Array ( 'hashtag' => e7d31fc0602fb2ede144d18cdffd816b, 'title' => Ready, 'order' => 1, ) ); array_multisort(array_map(function($element) { return $element['order']; }, $array), SORT_ASC, $array); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jGPMY
function name:  (null)
number of ops:  33
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_CONSTANT                                   ~1      'a7e87329b5eab8578f4f1098a152d6f4'
          1        INIT_ARRAY                                       ~2      ~1, 'hashtag'
    8     2        FETCH_CONSTANT                                   ~3      'Flower'
          3        ADD_ARRAY_ELEMENT                                ~2      ~3, 'title'
    9     4        ADD_ARRAY_ELEMENT                                ~2      3, 'order'
          5        INIT_ARRAY                                       ~4      ~2, 0
   14     6        FETCH_CONSTANT                                   ~5      'b24ce0cd392a5b0b8dedc66c25213594'
          7        INIT_ARRAY                                       ~6      ~5, 'hashtag'
   15     8        FETCH_CONSTANT                                   ~7      'Free'
          9        ADD_ARRAY_ELEMENT                                ~6      ~7, 'title'
   16    10        ADD_ARRAY_ELEMENT                                ~6      2, 'order'
         11        ADD_ARRAY_ELEMENT                                ~4      ~6, 1
   22    12        FETCH_CONSTANT                                   ~8      'e7d31fc0602fb2ede144d18cdffd816b'
         13        INIT_ARRAY                                       ~9      ~8, 'hashtag'
   23    14        FETCH_CONSTANT                                   ~10     'Ready'
         15        ADD_ARRAY_ELEMENT                                ~9      ~10, 'title'
   24    16        ADD_ARRAY_ELEMENT                                ~9      1, 'order'
         17        ADD_ARRAY_ELEMENT                                ~4      ~9, 2
    3    18        ASSIGN                                                   !0, ~4
   29    19        INIT_FCALL                                               'array_multisort'
         20        INIT_FCALL                                               'array_map'
         21        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FjGPMY%3A29%240'
   31    22        SEND_VAL                                                 ~12
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $13     
         25        SEND_VAL                                                 $13
         26        SEND_VAL                                                 4
         27        SEND_REF                                                 !0
         28        DO_ICALL                                                 
   33    29        INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FjGPMY%3A29%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jGPMY
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $element
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   RECV                                             !0      
   30     1        FETCH_DIM_R                                      ~1      !0, 'order'
          2      > RETURN                                                   ~1
   31     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FjGPMY%3A29%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.7 ms | 1396 KiB | 19 Q