3v4l.org

run code in 300+ PHP versions simultaneously
<?php $apiLogin = 'xbridge'; $userLogin = $_POST['user_name']; $userEmail = $_POST['user_email']; $apiKey = 'ddd'; $apiSignature = hash('sha256',$userLogin.$apiLogin.$apiKey); $query = array( 'apiLogin' => $apiLogin, 'apiSignature'=> $apiSignature, 'userLogin' => $userLogin, 'userEmail' => $userEmail, ); if(isset($_POST['user_first_name'])) { $query['userName'] = $_POST['user_first_name']; } if(isset($_POST['user_last_name'])) { $query['userLastName'] = $_POST['user_last_name']; } if(isset($_POST['user_phone'])) { $query['userPhone'] = $_POST['user_phone']; } $query['apiSignature'] = hash('sha256', $query['userLogin'].$query['apiLogin'].$apiKey); ?> <div class="contents1"> <div class="center1"> <?php if($result['status']=='success'){ $userInfo = json_decode($result['message'], true); $loginId = $userInfo['Login']; $pass = $userInfo['Password']; ?> <div class="text-success text-center"><h5><strong><br><br><br><br><br><br>登録成功しました。<br><br> ユーザ名:<?php echo $loginId;?><br><br> パスワード:<?php echo $pass;?><br></strong></h5></div> <br> <div class="margin-left380 col-lg-offset-4 col-lg-5"> <a class="btn btn-primary" href="mql4buy:">MT4へ</a> </div> <?php //send email $transport= Swift_SmtpTransport::newInstance("mail06.in-plus.jp", 587) ->setUsername('dev1@xbridge.co.jp') ->setPassword('Dev0824!'); $mailer = Swift_Mailer::newInstance($transport); $message = Swift_Message::newInstance('MQL5登録のお知らせ') ->setFrom(array('info@xbridge.co.jp'=>'xbridge')) ->setTo(array($query['userEmail']=>'お客様')) ->setBody('body') ->addPart('お客様へ:<br>MQL5登録成功しました。<br>お客様ID:'.$loginId.'<br>パスワード:'.$pass, 'text/html'); $result = $mailer->send($message); } else { $errorMessage = $result['message']; switch ($errorMessage) { case '[EmailExists]': $message = 'メールアドレスは既に使用されています。'; break; case '[InvalidParameters]': $message = '入力データが不正です。'; break; case '[LoginAlreadyExists]': $message = 'ユーザ名が既に使用されています。'; break; default: $message = 'システムエラー'; break; } ?> <div class='text-danger text-center'><h5><strong><br><br><br><br><br><br>登録失敗しました<br><br> エラー:<?php echo $message;?><br></strong></h5></div> <?php } ?> </div> </div> <br>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 27
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 34
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 41
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 112
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 133
Branch analysis from position: 133
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 112
5 jumps found. (Code = 188) Position 1 = 122, Position 2 = 124, Position 3 = 126, Position 4 = 128, Position 5 = 115
Branch analysis from position: 122
1 jumps found. (Code = 42) Position 1 = 130
Branch analysis from position: 130
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 124
1 jumps found. (Code = 42) Position 1 = 130
Branch analysis from position: 130
Branch analysis from position: 126
1 jumps found. (Code = 42) Position 1 = 130
Branch analysis from position: 130
Branch analysis from position: 128
1 jumps found. (Code = 42) Position 1 = 130
Branch analysis from position: 130
Branch analysis from position: 115
2 jumps found. (Code = 44) Position 1 = 117, Position 2 = 122
Branch analysis from position: 117
2 jumps found. (Code = 44) Position 1 = 119, Position 2 = 124
Branch analysis from position: 119
2 jumps found. (Code = 44) Position 1 = 121, Position 2 = 126
Branch analysis from position: 121
1 jumps found. (Code = 42) Position 1 = 128
Branch analysis from position: 128
Branch analysis from position: 126
Branch analysis from position: 124
Branch analysis from position: 122
Branch analysis from position: 41
Branch analysis from position: 34
Branch analysis from position: 27
filename:       /in/BQcEW
function name:  (null)
number of ops:  135
compiled vars:  !0 = $apiLogin, !1 = $userLogin, !2 = $userEmail, !3 = $apiKey, !4 = $apiSignature, !5 = $query, !6 = $result, !7 = $userInfo, !8 = $loginId, !9 = $pass, !10 = $transport, !11 = $mailer, !12 = $message, !13 = $errorMessage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'xbridge'
    3     1        FETCH_R                      global              ~15     '_POST'
          2        FETCH_DIM_R                                      ~16     ~15, 'user_name'
          3        ASSIGN                                                   !1, ~16
    4     4        FETCH_R                      global              ~18     '_POST'
          5        FETCH_DIM_R                                      ~19     ~18, 'user_email'
          6        ASSIGN                                                   !2, ~19
    5     7        ASSIGN                                                   !3, 'ddd'
    6     8        INIT_FCALL                                               'hash'
          9        SEND_VAL                                                 'sha256'
         10        CONCAT                                           ~22     !1, !0
         11        CONCAT                                           ~23     ~22, !3
         12        SEND_VAL                                                 ~23
         13        DO_ICALL                                         $24     
         14        ASSIGN                                                   !4, $24
    8    15        INIT_ARRAY                                       ~26     !0, 'apiLogin'
    9    16        ADD_ARRAY_ELEMENT                                ~26     !4, 'apiSignature'
   10    17        ADD_ARRAY_ELEMENT                                ~26     !1, 'userLogin'
   11    18        ADD_ARRAY_ELEMENT                                ~26     !2, 'userEmail'
    7    19        ASSIGN                                                   !5, ~26
   14    20        FETCH_IS                                         ~28     '_POST'
         21        ISSET_ISEMPTY_DIM_OBJ                         0          ~28, 'user_first_name'
         22      > JMPZ                                                     ~29, ->27
   16    23    >   FETCH_R                      global              ~31     '_POST'
         24        FETCH_DIM_R                                      ~32     ~31, 'user_first_name'
         25        ASSIGN_DIM                                               !5, 'userName'
         26        OP_DATA                                                  ~32
   19    27    >   FETCH_IS                                         ~33     '_POST'
         28        ISSET_ISEMPTY_DIM_OBJ                         0          ~33, 'user_last_name'
         29      > JMPZ                                                     ~34, ->34
   21    30    >   FETCH_R                      global              ~36     '_POST'
         31        FETCH_DIM_R                                      ~37     ~36, 'user_last_name'
         32        ASSIGN_DIM                                               !5, 'userLastName'
         33        OP_DATA                                                  ~37
   24    34    >   FETCH_IS                                         ~38     '_POST'
         35        ISSET_ISEMPTY_DIM_OBJ                         0          ~38, 'user_phone'
         36      > JMPZ                                                     ~39, ->41
   26    37    >   FETCH_R                      global              ~41     '_POST'
         38        FETCH_DIM_R                                      ~42     ~41, 'user_phone'
         39        ASSIGN_DIM                                               !5, 'userPhone'
         40        OP_DATA                                                  ~42
   29    41    >   INIT_FCALL                                               'hash'
         42        SEND_VAL                                                 'sha256'
         43        FETCH_DIM_R                                      ~44     !5, 'userLogin'
         44        FETCH_DIM_R                                      ~45     !5, 'apiLogin'
         45        CONCAT                                           ~46     ~44, ~45
         46        CONCAT                                           ~47     ~46, !3
         47        SEND_VAL                                                 ~47
         48        DO_ICALL                                         $48     
         49        ASSIGN_DIM                                               !5, 'apiSignature'
         50        OP_DATA                                                  $48
   33    51        ECHO                                                     '%3Cdiv+class%3D%22contents1%22%3E%0A++++%3Cdiv+class%3D%22center1%22%3E%0A'
   36    52        FETCH_DIM_R                                      ~49     !6, 'status'
         53        IS_EQUAL                                                 ~49, 'success'
         54      > JMPZ                                                     ~50, ->112
   37    55    >   INIT_FCALL                                               'json_decode'
         56        FETCH_DIM_R                                      ~51     !6, 'message'
         57        SEND_VAL                                                 ~51
         58        SEND_VAL                                                 <true>
         59        DO_ICALL                                         $52     
         60        ASSIGN                                                   !7, $52
   38    61        FETCH_DIM_R                                      ~54     !7, 'Login'
         62        ASSIGN                                                   !8, ~54
   39    63        FETCH_DIM_R                                      ~56     !7, 'Password'
         64        ASSIGN                                                   !9, ~56
   42    65        ECHO                                                     '++++%3Cdiv+class%3D%22text-success+text-center%22%3E%3Ch5%3E%3Cstrong%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%E7%99%BB%E9%8C%B2%E6%88%90%E5%8A%9F%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3Cbr%3E%3Cbr%3E%0A++++++++%E3%83%A6%E3%83%BC%E3%82%B6%E5%90%8D%3A'
   43    66        ECHO                                                     !8
         67        ECHO                                                     '%3Cbr%3E%3Cbr%3E%0A++++++++%E3%83%91%E3%82%B9%E3%83%AF%E3%83%BC%E3%83%89%3A'
   44    68        ECHO                                                     !9
         69        ECHO                                                     '%3Cbr%3E%3C%2Fstrong%3E%3C%2Fh5%3E%3C%2Fdiv%3E%0A++++++++%3Cbr%3E%0A++++++++%3Cdiv+class%3D%22margin-left380+col-lg-offset-4+col-lg-5%22%3E%0A++++++++++++%3Ca+class%3D%22btn+btn-primary%22+href%3D%22mql4buy%3A%22%3EMT4%E3%81%B8%3C%2Fa%3E%0A++++++++%3C%2Fdiv%3E%0A+++'
   51    70        INIT_STATIC_METHOD_CALL                                  'Swift_SmtpTransport', 'newInstance'
         71        SEND_VAL_EX                                              'mail06.in-plus.jp'
         72        SEND_VAL_EX                                              587
         73        DO_FCALL                                      0  $58     
   52    74        INIT_METHOD_CALL                                         $58, 'setUsername'
         75        SEND_VAL_EX                                              'dev1%40xbridge.co.jp'
         76        DO_FCALL                                      0  $59     
   53    77        INIT_METHOD_CALL                                         $59, 'setPassword'
         78        SEND_VAL_EX                                              'Dev0824%21'
         79        DO_FCALL                                      0  $60     
   51    80        ASSIGN                                                   !10, $60
   54    81        INIT_STATIC_METHOD_CALL                                  'Swift_Mailer', 'newInstance'
         82        SEND_VAR_EX                                              !10
         83        DO_FCALL                                      0  $62     
         84        ASSIGN                                                   !11, $62
   56    85        INIT_STATIC_METHOD_CALL                                  'Swift_Message', 'newInstance'
         86        SEND_VAL_EX                                              'MQL5%E7%99%BB%E9%8C%B2%E3%81%AE%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B'
         87        DO_FCALL                                      0  $64     
   57    88        INIT_METHOD_CALL                                         $64, 'setFrom'
         89        SEND_VAL_EX                                              <array>
         90        DO_FCALL                                      0  $65     
   58    91        INIT_METHOD_CALL                                         $65, 'setTo'
         92        FETCH_DIM_R                                      ~66     !5, 'userEmail'
         93        INIT_ARRAY                                       ~67     '%E3%81%8A%E5%AE%A2%E6%A7%98', ~66
         94        SEND_VAL_EX                                              ~67
         95        DO_FCALL                                      0  $68     
   59    96        INIT_METHOD_CALL                                         $68, 'setBody'
         97        SEND_VAL_EX                                              'body'
         98        DO_FCALL                                      0  $69     
   60    99        INIT_METHOD_CALL                                         $69, 'addPart'
        100        CONCAT                                           ~70     '%E3%81%8A%E5%AE%A2%E6%A7%98%E3%81%B8%EF%BC%9A%3Cbr%3EMQL5%E7%99%BB%E9%8C%B2%E6%88%90%E5%8A%9F%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3Cbr%3E%E3%81%8A%E5%AE%A2%E6%A7%98ID%EF%BC%9A', !8
        101        CONCAT                                           ~71     ~70, '%3Cbr%3E%E3%83%91%E3%82%B9%E3%83%AF%E3%83%BC%E3%83%89%EF%BC%9A'
        102        CONCAT                                           ~72     ~71, !9
        103        SEND_VAL_EX                                              ~72
        104        SEND_VAL_EX                                              'text%2Fhtml'
        105        DO_FCALL                                      0  $73     
   56   106        ASSIGN                                                   !12, $73
   62   107        INIT_METHOD_CALL                                         !11, 'send'
        108        SEND_VAR_EX                                              !12
        109        DO_FCALL                                      0  $75     
        110        ASSIGN                                                   !6, $75
        111      > JMP                                                      ->133
   64   112    >   FETCH_DIM_R                                      ~77     !6, 'message'
        113        ASSIGN                                                   !13, ~77
   65   114      > SWITCH_STRING                                            !13, [ '%5BEmailExists%5D':->122, '%5BInvalidParameters%5D':->124, '%5BLoginAlreadyExists%5D':->126, ], ->128
   66   115    >   IS_EQUAL                                                 !13, '%5BEmailExists%5D'
        116      > JMPNZ                                                    ~79, ->122
   70   117    >   IS_EQUAL                                                 !13, '%5BInvalidParameters%5D'
        118      > JMPNZ                                                    ~79, ->124
   74   119    >   IS_EQUAL                                                 !13, '%5BLoginAlreadyExists%5D'
        120      > JMPNZ                                                    ~79, ->126
        121    > > JMP                                                      ->128
   67   122    >   ASSIGN                                                   !12, '%E3%83%A1%E3%83%BC%E3%83%AB%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%81%AF%E6%97%A2%E3%81%AB%E4%BD%BF%E7%94%A8%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82'
   69   123      > JMP                                                      ->130
   71   124    >   ASSIGN                                                   !12, '%E5%85%A5%E5%8A%9B%E3%83%87%E3%83%BC%E3%82%BF%E3%81%8C%E4%B8%8D%E6%AD%A3%E3%81%A7%E3%81%99%E3%80%82'
   73   125      > JMP                                                      ->130
   75   126    >   ASSIGN                                                   !12, '%E3%83%A6%E3%83%BC%E3%82%B6%E5%90%8D%E3%81%8C%E6%97%A2%E3%81%AB%E4%BD%BF%E7%94%A8%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82'
   77   127      > JMP                                                      ->130
   80   128    >   ASSIGN                                                   !12, '%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%82%A8%E3%83%A9%E3%83%BC'
   81   129      > JMP                                                      ->130
   83   130    >   ECHO                                                     '+%3Cdiv+class%3D%27text-danger+text-center%27%3E%3Ch5%3E%3Cstrong%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%E7%99%BB%E9%8C%B2%E5%A4%B1%E6%95%97%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%3Cbr%3E%3Cbr%3E%0A+++++++++%E3%82%A8%E3%83%A9%E3%83%BC%3A'
   84   131        ECHO                                                     !12
        132        ECHO                                                     '%3Cbr%3E%3C%2Fstrong%3E%3C%2Fh5%3E%3C%2Fdiv%3E%0A++'
   87   133    >   ECHO                                                     '++++%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A%3Cbr%3E'
   89   134      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.63 ms | 1412 KiB | 17 Q