3v4l.org

run code in 300+ PHP versions simultaneously
<?php // The normal way echo sha1('1981'); echo PHP_EOL; // Your way $str = mb_convert_encoding('1981', 'UTF-16LE'); echo $result = strtoupper(sha1($str));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GOCLM
function name:  (null)
number of ops:  19
compiled vars:  !0 = $str, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'sha1'
          1        SEND_VAL                                                 '1981'
          2        DO_ICALL                                         $2      
          3        ECHO                                                     $2
    6     4        ECHO                                                     '%0A'
    9     5        INIT_FCALL                                               'mb_convert_encoding'
          6        SEND_VAL                                                 '1981'
          7        SEND_VAL                                                 'UTF-16LE'
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
   10    10        INIT_FCALL                                               'strtoupper'
         11        INIT_FCALL                                               'sha1'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16        ASSIGN                                           ~7      !1, $6
         17        ECHO                                                     ~7
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
216.62 ms | 939 KiB | 20 Q