3v4l.org

run code in 300+ PHP versions simultaneously
<?php $concatString = "20161017T215257|580501e9f37ee|F3C0K54C|START_LOAN_DEMAND|123456|MS|5000000|0|104|CZK|||TV Samsung S25|15001|NESS|Navratil|Zdenek|604123456||zdenek.navratil@cofidis.cz|||||||||||http://www.myelectro.cz/callback.php"; $encod = mb_detect_encoding($concatString); $utfString = mb_convert_encoding($concatString,"UTF-8",$encod); $hashTag = sha1($utfString,true); echo $hashTag; echo "\r\n"; $base64Tag = base64_encode($hashTag); echo $base64Tag; echo "\r\n"; $forTriple = bin2hex(mb_convert_encoding($base64Tag,"UTF-8")); echo $forTriple; echo "\r\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N3ftC
function name:  (null)
number of ops:  35
compiled vars:  !0 = $concatString, !1 = $encod, !2 = $utfString, !3 = $hashTag, !4 = $base64Tag, !5 = $forTriple
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '20161017T215257%7C580501e9f37ee%7CF3C0K54C%7CSTART_LOAN_DEMAND%7C123456%7CMS%7C5000000%7C0%7C104%7CCZK%7C%7C%7CTV+Samsung+S25%7C15001%7CNESS%7CNavratil%7CZdenek%7C604123456%7C%7Czdenek.navratil%40cofidis.cz%7C%7C%7C%7C%7C%7C%7C%7C%7C%7C%7Chttp%3A%2F%2Fwww.myelectro.cz%2Fcallback.php'
    4     1        INIT_FCALL                                               'mb_detect_encoding'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
    5     5        INIT_FCALL                                               'mb_convert_encoding'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'UTF-8'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !2, $9
    6    11        INIT_FCALL                                               'sha1'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $11     
         15        ASSIGN                                                   !3, $11
    7    16        ECHO                                                     !3
    8    17        ECHO                                                     '%0D%0A'
    9    18        INIT_FCALL                                               'base64_encode'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                         $13     
         21        ASSIGN                                                   !4, $13
   10    22        ECHO                                                     !4
   11    23        ECHO                                                     '%0D%0A'
   12    24        INIT_FCALL                                               'bin2hex'
         25        INIT_FCALL                                               'mb_convert_encoding'
         26        SEND_VAR                                                 !4
         27        SEND_VAL                                                 'UTF-8'
         28        DO_ICALL                                         $15     
         29        SEND_VAR                                                 $15
         30        DO_ICALL                                         $16     
         31        ASSIGN                                                   !5, $16
   13    32        ECHO                                                     !5
   14    33        ECHO                                                     '%0D%0A'
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.15 ms | 1396 KiB | 23 Q