3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '/home/nzbs/site/newznab/nzbfiles/0/06/063194c34743f9cc817381e3f6c68854.gz'; echo substr(hash('sha512',$str),0,20);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kk8V2
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fhome%2Fnzbs%2Fsite%2Fnewznab%2Fnzbfiles%2F0%2F06%2F063194c34743f9cc817381e3f6c68854.gz'
    3     1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'hash'
          3        SEND_VAL                                                 'sha512'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 20
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.1 ms | 1394 KiB | 17 Q