3v4l.org

run code in 300+ PHP versions simultaneously
<?php $centesimas = 598322.3; var_dump(intval($centesimas)== $centesimas); $token = '9b81b2'; $key = 'CualquierCosa'; echo $descifrado = bin2hex(openssl_encrypt($token, "AES-128-ECB", $key, OPENSSL_RAW_DATA)); echo PHP_EOL; echo openssl_error_string(); $tokenBD = '6f79ca09cf1267f02bd6e9179e112a2d'; $tokenCifrado = hex2bin($tokenBD); $token = openssl_decrypt($tokenCifrado, "AES-128-ECB", $key, OPENSSL_RAW_DATA); echo openssl_error_string(); echo $tokenBD.PHP_EOL; echo $descifrado; var_dump($tokenBD == $descifrado);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lWFof
function name:  (null)
number of ops:  48
compiled vars:  !0 = $centesimas, !1 = $token, !2 = $key, !3 = $descifrado, !4 = $tokenBD, !5 = $tokenCifrado
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 598322
    4     1        INIT_FCALL                                               'var_dump'
          2        CAST                                          4  ~7      !0
          3        IS_EQUAL                                         ~8      !0, ~7
          4        SEND_VAL                                                 ~8
          5        DO_ICALL                                                 
    5     6        ASSIGN                                                   !1, '9b81b2'
    6     7        ASSIGN                                                   !2, 'CualquierCosa'
    7     8        INIT_FCALL                                               'bin2hex'
          9        INIT_FCALL_BY_NAME                                       'openssl_encrypt'
         10        SEND_VAR_EX                                              !1
         11        SEND_VAL_EX                                              'AES-128-ECB'
         12        SEND_VAR_EX                                              !2
         13        FETCH_CONSTANT                                   ~12     'OPENSSL_RAW_DATA'
         14        SEND_VAL_EX                                              ~12
         15        DO_FCALL                                      0  $13     
         16        SEND_VAR                                                 $13
         17        DO_ICALL                                         $14     
         18        ASSIGN                                           ~15     !3, $14
         19        ECHO                                                     ~15
    8    20        ECHO                                                     '%0A'
    9    21        INIT_FCALL_BY_NAME                                       'openssl_error_string'
         22        DO_FCALL                                      0  $16     
         23        ECHO                                                     $16
   11    24        ASSIGN                                                   !4, '6f79ca09cf1267f02bd6e9179e112a2d'
   12    25        INIT_FCALL                                               'hex2bin'
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                         $18     
         28        ASSIGN                                                   !5, $18
   13    29        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
         30        SEND_VAR_EX                                              !5
         31        SEND_VAL_EX                                              'AES-128-ECB'
         32        SEND_VAR_EX                                              !2
         33        FETCH_CONSTANT                                   ~20     'OPENSSL_RAW_DATA'
         34        SEND_VAL_EX                                              ~20
         35        DO_FCALL                                      0  $21     
         36        ASSIGN                                                   !1, $21
   14    37        INIT_FCALL_BY_NAME                                       'openssl_error_string'
         38        DO_FCALL                                      0  $23     
         39        ECHO                                                     $23
   16    40        CONCAT                                           ~24     !4, '%0A'
         41        ECHO                                                     ~24
   17    42        ECHO                                                     !3
   18    43        INIT_FCALL                                               'var_dump'
         44        IS_EQUAL                                         ~25     !4, !3
         45        SEND_VAL                                                 ~25
         46        DO_ICALL                                                 
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.57 ms | 1466 KiB | 16 Q