3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rgData = [ [ 'account_id' => 9, 'entered' => 2 ], [ 'account_id' => 9, 'entered' => 3 ], [ 'account_id' => 9, 'entered' => 1 ] ]; $rgOrder = array_map(function($rgItem) { return $rgItem['entered']; }, $rgData); array_multisort($rgOrder, SORT_DESC, $rgData); var_dump($rgData);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9MMRS
function name:  (null)
number of ops:  16
compiled vars:  !0 = $rgData, !1 = $rgOrder
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   17     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F9MMRS%3A17%240'
   20     3        SEND_VAL                                                 ~3
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
   17     6        ASSIGN                                                   !1, $4
   21     7        INIT_FCALL                                               'array_multisort'
          8        SEND_REF                                                 !1
          9        SEND_VAL                                                 3
         10        SEND_REF                                                 !0
         11        DO_ICALL                                                 
   22    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F9MMRS%3A17%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9MMRS
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $rgItem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   19     1        FETCH_DIM_R                                      ~1      !0, 'entered'
          2      > RETURN                                                   ~1
   20     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F9MMRS%3A17%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.52 ms | 1399 KiB | 19 Q