3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = 'skope'; $timestamp = microtime(); $hash = sha1(implode([$username, $timestamp]), true); var_dump($hash); var_dump(strlen($hash));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q0VrA
function name:  (null)
number of ops:  22
compiled vars:  !0 = $username, !1 = $timestamp, !2 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'skope'
    4     1        INIT_FCALL                                               'microtime'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !1, $4
    6     4        INIT_FCALL                                               'sha1'
          5        INIT_FCALL                                               'implode'
          6        INIT_ARRAY                                       ~6      !0
          7        ADD_ARRAY_ELEMENT                                ~6      !1
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
    8    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    9    17        INIT_FCALL                                               'var_dump'
         18        STRLEN                                           ~11     !2
         19        SEND_VAL                                                 ~11
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.35 ms | 1395 KiB | 21 Q