3v4l.org

run code in 300+ PHP versions simultaneously
<?php $appId = "11325"; $secret= "52b0c70dc9244762b762d6554116d32f"; $userid = null; $time = gmdate("Y-m-d\TH:i:s"); $unixTime = @strtotime($time."Z"); $signature = hash('sha256', ($userid?$userid:"").$appId.$unixTime.$secret); echo "/auth/get-token?appId={$appId}".($userid?"&userid={$userid}":"")."&timestamp={$time}&signature={$signature}"; echo "\n\n"; $token = "0_16536_1408876677_2_f6847bcf07edd672b38a30676808d2bfb97e1f0e3c58addb91a33e3df7567aac"; echo "&token=" .$token ."&hash=" .hash('sha256', $token .$secret);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 33
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 33
Branch analysis from position: 29
Branch analysis from position: 33
filename:       /in/aR7P1
function name:  (null)
number of ops:  53
compiled vars:  !0 = $appId, !1 = $secret, !2 = $userid, !3 = $time, !4 = $unixTime, !5 = $signature, !6 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '11325'
    3     1        ASSIGN                                                   !1, '52b0c70dc9244762b762d6554116d32f'
    4     2        ASSIGN                                                   !2, null
    6     3        INIT_FCALL                                               'gmdate'
          4        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3As'
          5        DO_ICALL                                         $10     
          6        ASSIGN                                                   !3, $10
    7     7        BEGIN_SILENCE                                    ~12     
          8        INIT_FCALL                                               'strtotime'
          9        CONCAT                                           ~13     !3, 'Z'
         10        SEND_VAL                                                 ~13
         11        DO_ICALL                                         $14     
         12        END_SILENCE                                              ~12
         13        ASSIGN                                                   !4, $14
    8    14        INIT_FCALL                                               'hash'
         15        SEND_VAL                                                 'sha256'
         16      > JMPZ                                                     !2, ->19
         17    >   QM_ASSIGN                                        ~16     !2
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~16     ''
         20    >   CONCAT                                           ~17     ~16, !0
         21        CONCAT                                           ~18     ~17, !4
         22        CONCAT                                           ~19     ~18, !1
         23        SEND_VAL                                                 ~19
         24        DO_ICALL                                         $20     
         25        ASSIGN                                                   !5, $20
   10    26        NOP                                                      
         27        FAST_CONCAT                                      ~22     '%2Fauth%2Fget-token%3FappId%3D', !0
         28      > JMPZ                                                     !2, ->33
         29    >   NOP                                                      
         30        FAST_CONCAT                                      ~23     '%26userid%3D', !2
         31        QM_ASSIGN                                        ~24     ~23
         32      > JMP                                                      ->34
         33    >   QM_ASSIGN                                        ~24     ''
         34    >   CONCAT                                           ~25     ~22, ~24
         35        ROPE_INIT                                     4  ~27     '%26timestamp%3D'
         36        ROPE_ADD                                      1  ~27     ~27, !3
         37        ROPE_ADD                                      2  ~27     ~27, '%26signature%3D'
         38        ROPE_END                                      3  ~26     ~27, !5
         39        CONCAT                                           ~29     ~25, ~26
         40        ECHO                                                     ~29
   13    41        ECHO                                                     '%0A%0A'
   15    42        ASSIGN                                                   !6, '0_16536_1408876677_2_f6847bcf07edd672b38a30676808d2bfb97e1f0e3c58addb91a33e3df7567aac'
   17    43        CONCAT                                           ~31     '%26token%3D', !6
         44        CONCAT                                           ~32     ~31, '%26hash%3D'
         45        INIT_FCALL                                               'hash'
         46        SEND_VAL                                                 'sha256'
         47        CONCAT                                           ~33     !6, !1
         48        SEND_VAL                                                 ~33
         49        DO_ICALL                                         $34     
         50        CONCAT                                           ~35     ~32, $34
         51        ECHO                                                     ~35
         52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.16 ms | 1400 KiB | 19 Q