3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getDialogKey($message) { $ids = array_flip([$message['id_profile_from'], $message['id_profile_to']]); ksort($ids, SORT_NUMERIC); return implode('_', array_flip($ids)); } var_dump(getDialogKey([ 'id_profile_from' => 1905, 'id_profile_to' => 1683, ]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7QBbt
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'getdialogkey'
   12     2        SEND_VAL                                                 <array>
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   14     6      > RETURN                                                   1

Function getdialogkey:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7QBbt
function name:  getDialogKey
number of ops:  22
compiled vars:  !0 = $message, !1 = $ids
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'array_flip'
          2        FETCH_DIM_R                                      ~2      !0, 'id_profile_from'
          3        INIT_ARRAY                                       ~3      ~2
          4        FETCH_DIM_R                                      ~4      !0, 'id_profile_to'
          5        ADD_ARRAY_ELEMENT                                ~3      ~4
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    6     9        INIT_FCALL                                               'ksort'
         10        SEND_REF                                                 !1
         11        SEND_VAL                                                 1
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 '_'
         15        INIT_FCALL                                               'array_flip'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                         $9      
         20      > RETURN                                                   $9
    8    21*     > RETURN                                                   null

End of function getdialogkey

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.02 ms | 1399 KiB | 22 Q