3v4l.org

run code in 300+ PHP versions simultaneously
<?php while (true) { $rand1 = mt_rand()/RAND_MAX; $rand2 = mt_rand()/RAND_MAX; 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 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 1
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 25
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 25
filename:       /in/ZcNAE
function name:  (null)
number of ops:  27
compiled vars:  !0 = $rand1, !1 = $rand2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMP                                                      ->25
    4     1    >   INIT_FCALL                                               'mt_rand'
          2        DO_ICALL                                         $2      
          3        FETCH_CONSTANT                                   ~3      'RAND_MAX'
          4        DIV                                              ~4      $2, ~3
          5        ASSIGN                                                   !0, ~4
    5     6        INIT_FCALL                                               'mt_rand'
          7        DO_ICALL                                         $6      
          8        FETCH_CONSTANT                                   ~7      'RAND_MAX'
          9        DIV                                              ~8      $6, ~7
         10        ASSIGN                                                   !1, ~8
    6    11        INIT_FCALL_BY_NAME                                       'bcmod'
         12        SEND_VAR_EX                                              !0
         13        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0  $10     
         15        INIT_FCALL                                               'fmod'
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $11     
         19        IS_NOT_EQUAL                                             $10, $11
         20      > JMPZ                                                     ~12, ->25
    7    21    >   CONCAT                                           ~13     !0, '+'
         22        CONCAT                                           ~14     ~13, !1
         23        ECHO                                                     ~14
    8    24      > JMP                                                      ->26
    3    25    > > JMPNZ                                                    <true>, ->1
   10    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.15 ms | 1395 KiB | 20 Q