3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.74 ms | 1386 KiB | 15 Q