3v4l.org

run code in 300+ PHP versions simultaneously
<?php $random_string = function($length) { $bag = str_split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'); $string = ''; while ($length--) { $string .= $bag[array_rand($bag)]; } return $string; }; $client_id = $random_string(16); $client_secret = base64_encode(hash('sha256', uniqid(microtime(1), true))); var_dump($client_id); var_dump($client_secret);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kKhHB
function name:  (null)
number of ops:  28
compiled vars:  !0 = $random_string, !1 = $client_id, !2 = $client_secret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FkKhHB%3A3%240'
          1        ASSIGN                                                   !0, ~3
   12     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              16
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                                   !1, $5
   13     6        INIT_FCALL                                               'base64_encode'
          7        INIT_FCALL                                               'hash'
          8        SEND_VAL                                                 'sha256'
          9        INIT_FCALL                                               'uniqid'
         10        INIT_FCALL                                               'microtime'
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                         $10     
         20        ASSIGN                                                   !2, $10
   15    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
   16    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FkKhHB%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/kKhHB
function name:  {closure}
number of ops:  16
compiled vars:  !0 = $length, !1 = $bag, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'str_split'
          2        SEND_VAL                                                 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    5     5        ASSIGN                                                   !2, ''
    6     6      > JMP                                                      ->12
    7     7    >   INIT_FCALL                                               'array_rand'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        FETCH_DIM_R                                      ~7      !1, $6
         11        ASSIGN_OP                                     8          !2, ~7
    6    12    >   POST_DEC                                         ~9      !0
         13      > JMPNZ                                                    ~9, ->7
    9    14    > > RETURN                                                   !2
   10    15*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FkKhHB%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.65 ms | 1400 KiB | 27 Q