3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.43 ms | 1455 KiB | 17 Q