3v4l.org

run code in 300+ PHP versions simultaneously
<?php function somethingrandom(){ return random_int(PHP_INT_MIN, PHP_INT_MAX); } $somethingrandom = somethingrandom(); for($i = 0; $i < 10; $i++){ echo $somethingrandom, "\n"; } echo $somethingrandom, "\n"; echo $somethingrandom, "\n"; echo $somethingrandom, "\n"; echo $somethingrandom, "\n"; echo $somethingrandom, "\n"; echo $somethingrandom, "\n"; echo $somethingrandom, "\n"; echo $somethingrandom, "\n"; echo $somethingrandom, "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/TrW8Y
function name:  (null)
number of ops:  29
compiled vars:  !0 = $somethingrandom, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'somethingrandom'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
    8     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->8
    9     5    >   ECHO                                                     !0
          6        ECHO                                                     '%0A'
    8     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 10
          9      > JMPNZ                                                    ~6, ->5
   11    10    >   ECHO                                                     !0
         11        ECHO                                                     '%0A'
   12    12        ECHO                                                     !0
         13        ECHO                                                     '%0A'
   13    14        ECHO                                                     !0
         15        ECHO                                                     '%0A'
   14    16        ECHO                                                     !0
         17        ECHO                                                     '%0A'
   15    18        ECHO                                                     !0
         19        ECHO                                                     '%0A'
   16    20        ECHO                                                     !0
         21        ECHO                                                     '%0A'
   17    22        ECHO                                                     !0
         23        ECHO                                                     '%0A'
   18    24        ECHO                                                     !0
         25        ECHO                                                     '%0A'
   19    26        ECHO                                                     !0
         27        ECHO                                                     '%0A'
         28      > RETURN                                                   1

Function somethingrandom:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TrW8Y
function name:  somethingrandom
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'random_int'
          1        SEND_VAL                                                 -9223372036854775808
          2        SEND_VAL                                                 9223372036854775807
          3        DO_ICALL                                         $0      
          4      > RETURN                                                   $0
    5     5*     > RETURN                                                   null

End of function somethingrandom

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.31 ms | 1403 KiB | 16 Q