3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret = "password"; $key = mb_convert_encoding($secret,'utf-16le'); $secret = md5(utf8_encode($key), true); $secret .= substr($secret,0,8); return $secret;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ubspm
function name:  (null)
number of ops:  22
compiled vars:  !0 = $secret, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'password'
    5     1        INIT_FCALL                                               'mb_convert_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'utf-16le'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6        INIT_FCALL                                               'md5'
          7        INIT_FCALL                                               'utf8_encode'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !0, $6
    7    14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 8
         18        DO_ICALL                                         $8      
         19        ASSIGN_OP                                     8          !0, $8
    8    20      > RETURN                                                   !0
         21*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.66 ms | 1395 KiB | 21 Q