3v4l.org

run code in 300+ PHP versions simultaneously
<?php mt_srand(0); echo '0: ' . mt_rand() / mt_getrandmax() . PHP_EOL; mt_srand(4); echo '4: ' . mt_rand() / mt_getrandmax() . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/As5rk
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mt_srand'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'mt_rand'
          4        DO_ICALL                                         $1      
          5        INIT_FCALL                                               'mt_getrandmax'
          6        DO_ICALL                                         $2      
          7        DIV                                              ~3      $1, $2
          8        CONCAT                                           ~4      '0%3A+', ~3
          9        CONCAT                                           ~5      ~4, '%0A'
         10        ECHO                                                     ~5
    6    11        INIT_FCALL                                               'mt_srand'
         12        SEND_VAL                                                 4
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'mt_rand'
         15        DO_ICALL                                         $7      
         16        INIT_FCALL                                               'mt_getrandmax'
         17        DO_ICALL                                         $8      
         18        DIV                                              ~9      $7, $8
         19        CONCAT                                           ~10     '4%3A+', ~9
         20        CONCAT                                           ~11     ~10, '%0A'
         21        ECHO                                                     ~11
    8    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.44 ms | 1395 KiB | 19 Q