3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hashPasswordMetro($password) { $utfString = mb_convert_encoding($password,"UTF-16LE"); $hashTag = sha1($utfString); return "0x".$hashTag; } echo hashPasswordMetro('N!!t2@14');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZQPdA
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'hashpasswordmetro'
          1        SEND_VAL                                                 'N%21%21t2%4014'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function hashpasswordmetro:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZQPdA
function name:  hashPasswordMetro
number of ops:  13
compiled vars:  !0 = $password, !1 = $utfString, !2 = $hashTag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'mb_convert_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'UTF-16LE'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        INIT_FCALL                                               'sha1'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !2, $5
    6    10        CONCAT                                           ~7      '0x', !2
         11      > RETURN                                                   ~7
    7    12*     > RETURN                                                   null

End of function hashpasswordmetro

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.34 ms | 1397 KiB | 18 Q