3v4l.org

run code in 300+ PHP versions simultaneously
<?php mt_srand(microtime(true)*100000 + memory_get_usage(true)); $var= mt_rand(0, mt_getrandmax()) * 0xFFFFFFFF; $var=(int)$var; echo $var;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/48Z7O
function name:  (null)
number of ops:  23
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'mt_srand'
          1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $1      
          4        MUL                                              ~2      $1, 100000
          5        INIT_FCALL                                               'memory_get_usage'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $3      
          8        ADD                                              ~4      ~2, $3
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    3    11        INIT_FCALL                                               'mt_rand'
         12        SEND_VAL                                                 0
         13        INIT_FCALL                                               'mt_getrandmax'
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                         $7      
         17        MUL                                              ~8      $7, 4294967295
         18        ASSIGN                                                   !0, ~8
    4    19        CAST                                          4  ~10     !0
         20        ASSIGN                                                   !0, ~10
    5    21        ECHO                                                     !0
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.19 ms | 1395 KiB | 23 Q