3v4l.org

run code in 300+ PHP versions simultaneously
<?php include 'CreateOauth.class.php'; $appid = 'XXXXXXXXXXXX'; $appsecret = 'XXXXXXXXXXXXXXXXXXX'; $oauth = new CreateOauth ($appid,$appsecret,30,true); if (!isset($_GET['code'])) { $call_url = 'http://XXXX.com/xxx.php'; $url = $oauth->createOauthUrlForCode($call_url); Header("Location: $url"); } else { $code = $_GET['code']; $oauth->setCode($code); $openid = $oauth->getUserInfo(); echo '<pre />'; var_dump($openid); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 25
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qa9Cl
function name:  (null)
number of ops:  39
compiled vars:  !0 = $appid, !1 = $appsecret, !2 = $oauth, !3 = $call_url, !4 = $url, !5 = $code, !6 = $openid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          'CreateOauth.class.php', INCLUDE
    5     1        ASSIGN                                                   !0, 'XXXXXXXXXXXX'
    6     2        ASSIGN                                                   !1, 'XXXXXXXXXXXXXXXXXXX'
    7     3        NEW                                              $10     'CreateOauth'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        SEND_VAL_EX                                              30
          7        SEND_VAL_EX                                              <true>
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !2, $10
    9    10        FETCH_IS                                         ~13     '_GET'
         11        ISSET_ISEMPTY_DIM_OBJ                         0  ~14     ~13, 'code'
         12        BOOL_NOT                                         ~15     ~14
         13      > JMPZ                                                     ~15, ->25
   10    14    >   ASSIGN                                                   !3, 'http%3A%2F%2FXXXX.com%2Fxxx.php'
   11    15        INIT_METHOD_CALL                                         !2, 'createOauthUrlForCode'
         16        SEND_VAR_EX                                              !3
         17        DO_FCALL                                      0  $17     
         18        ASSIGN                                                   !4, $17
   12    19        INIT_FCALL                                               'header'
         20        NOP                                                      
         21        FAST_CONCAT                                      ~19     'Location%3A+', !4
         22        SEND_VAL                                                 ~19
         23        DO_ICALL                                                 
    9    24      > JMP                                                      ->38
   14    25    >   FETCH_R                      global              ~21     '_GET'
         26        FETCH_DIM_R                                      ~22     ~21, 'code'
         27        ASSIGN                                                   !5, ~22
   15    28        INIT_METHOD_CALL                                         !2, 'setCode'
         29        SEND_VAR_EX                                              !5
         30        DO_FCALL                                      0          
   16    31        INIT_METHOD_CALL                                         !2, 'getUserInfo'
         32        DO_FCALL                                      0  $25     
         33        ASSIGN                                                   !6, $25
   17    34        ECHO                                                     '%3Cpre+%2F%3E'
   18    35        INIT_FCALL                                               'var_dump'
         36        SEND_VAR                                                 !6
         37        DO_ICALL                                                 
   19    38    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.8 ms | 1002 KiB | 15 Q