3v4l.org

run code in 500+ PHP versions simultaneously
<?php function env($name) { return 'd2fbec1321de3bc53af2fe7716c4b90c';} $setup_finish_args_raw = '{"acct_username":"hello","acct_email":"hello@admin.tld","acct_password":"hello","setup_auth_key":true}'; $setup_finish_args = json_decode($setup_finish_args_raw); // unset cookie setcookie('setup_arguments', '', time() - 3600); $transaction_authorised = env('TMP_SETUP_AUTH_KEY') == $setup_finish_args->setup_auth_key; var_dump($transaction_authorised); var_dump('anystring' == true); var_dump('anystring' === true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nI06T
function name:  (null)
number of ops:  29
compiled vars:  !0 = $setup_finish_args_raw, !1 = $setup_finish_args, !2 = $transaction_authorised
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                       !0, '%7B%22acct_username%22%3A%22hello%22%2C%22acct_email%22%3A%22hello%40admin.tld%22%2C%22acct_password%22%3A%22hello%22%2C%22setup_auth_key%22%3Atrue%7D'
    6     1        INIT_FCALL                                                   'json_decode'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !1, $4
    9     5        INIT_FCALL                                                   'setcookie'
          6        SEND_VAL                                                     'setup_arguments'
          7        SEND_VAL                                                     ''
          8        INIT_FCALL                                                   'time'
          9        DO_ICALL                                             $6      
         10        SUB                                                  ~7      $6, 3600
         11        SEND_VAL                                                     ~7
         12        DO_ICALL                                                     
   11    13        INIT_FCALL                                                   'env'
         14        SEND_VAL                                                     'TMP_SETUP_AUTH_KEY'
         15        DO_FCALL                                          0  $9      
         16        FETCH_OBJ_R                                          ~10     !1, 'setup_auth_key'
         17        IS_EQUAL                                             ~11     $9, ~10
         18        ASSIGN                                                       !2, ~11
   13    19        INIT_FCALL                                                   'var_dump'
         20        SEND_VAR                                                     !2
         21        DO_ICALL                                                     
   14    22        INIT_FCALL                                                   'var_dump'
         23        SEND_VAL                                                     <true>
         24        DO_ICALL                                                     
   15    25        INIT_FCALL                                                   'var_dump'
         26        SEND_VAL                                                     <false>
         27        DO_ICALL                                                     
         28      > RETURN                                                       1

Function env:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nI06T
function name:  env
number of ops:  3
compiled vars:  !0 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1      > RETURN                                                       'd2fbec1321de3bc53af2fe7716c4b90c'
          2*     > RETURN                                                       null

End of function env

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.39 ms | 1274 KiB | 18 Q