3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $caseid = strtoupper( substr( hash("sha256", time() . mt_rand(100000,999999) ),0,6)); echo $caseid;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/YEuCj
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'
         1        INIT_FCALL                                               'substr'
         2        INIT_FCALL                                               'hash'
   4     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                                                 6
        16        DO_ICALL                                         $5      
        17        SEND_VAR                                                 $5
        18        DO_ICALL                                         $6      
        19        ASSIGN                                                   !0, $6
   7    20        ECHO                                                     !0
        21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0