3v4l.org

run code in 300+ PHP versions simultaneously
<?php # require 'vendor/autoload.php'; use \Firebase\JWT\JWT; use \Firebase\JWT\Key; // デコードするJWT $jwt = "aaaaaa"; // 秘密鍵 $secretKey = "beniya"; try { // JWTのデコード $decoded = JWT::decode($jwt, new Key($secretKey, 'HS256')); print_r($decoded); } catch (Exception $e) { // エラーハンドリング echo 'Error: ' . $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 15
Branch analysis from position: 15
2 jumps found. (Code = 107) Position 1 = 16, Position 2 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2EVTV
function name:  (null)
number of ops:  21
compiled vars:  !0 = $jwt, !1 = $secretKey, !2 = $decoded, !3 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 'aaaaaa'
   12     1        ASSIGN                                                   !1, 'beniya'
   16     2        INIT_STATIC_METHOD_CALL                                  'Firebase%5CJWT%5CJWT', 'decode'
          3        SEND_VAR_EX                                              !0
          4        NEW                                              $6      'Firebase%5CJWT%5CKey'
          5        SEND_VAR_EX                                              !1
          6        SEND_VAL_EX                                              'HS256'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $6
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !2, $8
   17    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > JMP                                                      ->20
   18    15  E > > CATCH                                       last         'Exception'
   20    16    >   INIT_METHOD_CALL                                         !3, 'getMessage'
         17        DO_FCALL                                      0  $11     
         18        CONCAT                                           ~12     'Error%3A+', $11
         19        ECHO                                                     ~12
   21    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.47 ms | 952 KiB | 14 Q