3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4HhsV
function name:  (null)
number of ops:  29
compiled vars:  !0 = $map
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   INIT_FCALL                                               'sortmap'
   27     1        SEND_VAL                                                 <array>
   26     2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
   32     4        INIT_FCALL                                               'getvalue'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <array>
          7        DO_FCALL                                      0  $3      
          8        CONCAT                                           ~4      $3, '%0A'
          9        ECHO                                                     ~4
   33    10        INIT_FCALL                                               'getvalue'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 <array>
         13        DO_FCALL                                      0  $5      
         14        CONCAT                                           ~6      $5, '%0A'
         15        ECHO                                                     ~6
   34    16        INIT_FCALL                                               'getvalue'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 <array>
         19        DO_FCALL                                      0  $7      
         20        CONCAT                                           ~8      $7, '%0A'
         21        ECHO                                                     ~8
   35    22        INIT_FCALL                                               'getvalue'
         23        SEND_VAR                                                 !0
         24        SEND_VAL                                                 <array>
         25        DO_FCALL                                      0  $9      
         26        CONCAT                                           ~10     $9, '%0A'
         27        ECHO                                                     ~10
         28      > RETURN                                                   1

Function sortstring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4HhsV
function name:  sortString
number of ops:  13
compiled vars:  !0 = $string, !1 = $type_chars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'str_split'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !1, $2
    5     5        INIT_FCALL                                               'sort'
          6        SEND_REF                                                 !1
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'implode'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11      > RETURN                                                   $5
    7    12*     > RETURN                                                   null

End of function sortstring

Function getvalue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4HhsV
function name:  getValue
number of ops:  16
compiled vars:  !0 = $map, !1 = $input, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%2C'
          4        INIT_FCALL                                               'array_map'
          5        SEND_VAL                                                 'sortString'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !2, $4
   12    11        FETCH_DIM_IS                                     ~6      !0, !2
         12        COALESCE                                         ~7      ~6
         13        QM_ASSIGN                                        ~7      null
         14      > RETURN                                                   ~7
   13    15*     > RETURN                                                   null

End of function getvalue

Function sortmap:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4HhsV
function name:  sortMap
number of ops:  13
compiled vars:  !0 = $map
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   17     1        INIT_FCALL                                               'array_reduce'
          2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          7        BIND_LEXICAL                                             ~2, !0
   23     8        SEND_VAL                                                 ~2
          9        SEND_VAL                                                 <array>
   17    10        DO_ICALL                                         $3      
   23    11      > RETURN                                                   $3
   24    12*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4HhsV
function name:  {closure}
number of ops:  15
compiled vars:  !0 = $sorted_map, !1 = $types, !2 = $map, !3 = $sorted_types
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
   18     3        INIT_FCALL                                               'preg_replace_callback'
          4        SEND_VAL                                                 '%2F%5BA-Z%5D%7B2%7D%2F'
          5        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
   20     6        SEND_VAL                                                 ~4
          7        SEND_VAR                                                 !1
   18     8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !3, $5
   21    10        FETCH_DIM_R                                      ~8      !2, !1
         11        ASSIGN_DIM                                               !0, !3
         12        OP_DATA                                                  ~8
   22    13      > RETURN                                                   !0
   23    14*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4HhsV
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   19     1        INIT_FCALL                                               'sortstring'
          2        FETCH_DIM_R                                      ~1      !0, 0
          3        SEND_VAL                                                 ~1
          4        DO_FCALL                                      0  $2      
          5      > RETURN                                                   $2
   20     6*     > RETURN                                                   null

End of Dynamic Function 0

End of Dynamic Function 0

End of function sortmap

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.33 ms | 984 KiB | 26 Q