3v4l.org

run code in 300+ PHP versions simultaneously
<?php while (true) { $rand1 = (float)rand()/(float)getrandmax(); $rand2 = (float)rand()/(float)getrandmax(); if (bcmod($rand1, $rand2) != fmod($rand1, $rand2)) { echo $rand1." ".$rand2; break; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 1
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 31
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 31
filename:       /in/N7IsZ
function name:  (null)
number of ops:  33
compiled vars:  !0 = $rand1, !1 = $rand2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMP                                                      ->31
    4     1    >   INIT_FCALL                                               'rand'
          2        DO_ICALL                                         $2      
          3        CAST                                          5  ~3      $2
          4        INIT_FCALL                                               'getrandmax'
          5        DO_ICALL                                         $4      
          6        CAST                                          5  ~5      $4
          7        DIV                                              ~6      ~3, ~5
          8        ASSIGN                                                   !0, ~6
    5     9        INIT_FCALL                                               'rand'
         10        DO_ICALL                                         $8      
         11        CAST                                          5  ~9      $8
         12        INIT_FCALL                                               'getrandmax'
         13        DO_ICALL                                         $10     
         14        CAST                                          5  ~11     $10
         15        DIV                                              ~12     ~9, ~11
         16        ASSIGN                                                   !1, ~12
    6    17        INIT_FCALL_BY_NAME                                       'bcmod'
         18        SEND_VAR_EX                                              !0
         19        SEND_VAR_EX                                              !1
         20        DO_FCALL                                      0  $14     
         21        INIT_FCALL                                               'fmod'
         22        SEND_VAR                                                 !0
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $15     
         25        IS_NOT_EQUAL                                             $14, $15
         26      > JMPZ                                                     ~16, ->31
    7    27    >   CONCAT                                           ~17     !0, '+'
         28        CONCAT                                           ~18     ~17, !1
         29        ECHO                                                     ~18
    8    30      > JMP                                                      ->32
    3    31    > > JMPNZ                                                    <true>, ->1
   10    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.44 ms | 1396 KiB | 19 Q