3v4l.org

run code in 300+ PHP versions simultaneously
<?php $caseid = strtoupper( substr( hash("sha256", time() . mt_rand(100000,999999) ),0,4)); echo $caseid;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3BFFT
function name:  (null)
number of ops:  22
compiled vars:  !0 = $caseid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtoupper'
    3     1        INIT_FCALL                                               'substr'
    4     2        INIT_FCALL                                               'hash'
          3        SEND_VAL                                                 'sha256'
          4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $1      
          6        INIT_FCALL                                               'mt_rand'
          7        SEND_VAL                                                 100000
          8        SEND_VAL                                                 999999
          9        DO_ICALL                                         $2      
         10        CONCAT                                           ~3      $1, $2
         11        SEND_VAL                                                 ~3
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
    5    14        SEND_VAL                                                 0
         15        SEND_VAL                                                 4
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                         $6      
    2    19        ASSIGN                                                   !0, $6
    7    20        ECHO                                                     !0
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.7 ms | 1395 KiB | 23 Q