3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); try { mt_srand(null); } catch (TypeError $e) {} echo mt_rand();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
filename:       /in/t5G2B
function name:  (null)
number of ops:  9
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'mt_srand'
          1        SEND_VAL                                                 null
          2        DO_ICALL                                                 
          3      > JMP                                                      ->5
    7     4  E > > CATCH                                       last         'TypeError'
    8     5    >   INIT_FCALL                                               'mt_rand'
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.83 ms | 997 KiB | 15 Q