3v4l.org

run code in 300+ PHP versions simultaneously
<?php // seed with microseconds function make_seed() { list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } mt_srand(make_seed()); $randval = mt_rand();

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6c3AS
function name:  (null)
number of ops:  9
compiled vars:  !0 = $randval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'mt_srand'
          1        INIT_FCALL                                               'make_seed'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                                 
   10     5        INIT_FCALL                                               'mt_rand'
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
          8      > RETURN                                                   1

Function make_seed:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6c3AS
function name:  make_seed
number of ops:  17
compiled vars:  !0 = $usec, !1 = $sec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '+'
          2        INIT_FCALL                                               'microtime'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        FETCH_LIST_R                                     $4      $3, 0
          7        ASSIGN                                                   !0, $4
          8        FETCH_LIST_R                                     $6      $3, 1
          9        ASSIGN                                                   !1, $6
         10        FREE                                                     $3
    7    11        CAST                                          5  ~8      !1
         12        CAST                                          5  ~9      !0
         13        MUL                                              ~10     ~9, 100000
         14        ADD                                              ~11     ~8, ~10
         15      > RETURN                                                   ~11
    8    16*     > RETURN                                                   null

End of function make_seed

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.9 ms | 1398 KiB | 22 Q