3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((rand(0, 2) % 3) == 1 ? true : false); var_dump((rand(0, 2) % 3) == 1 ? true : false); var_dump((rand(0, 2) % 3) == 1 ? true : false); var_dump((rand(0, 2) % 2) == 1 ? true : false); var_dump((rand(0, 2) % 2) == 1 ? true : false); var_dump((rand(0, 2) % 2) == 1 ? true : false); var_dump((rand(0, 2) % 2) == 1 ? true : false);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 49
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 43) Position 1 = 60, Position 2 = 62
Branch analysis from position: 60
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 73, Position 2 = 75
Branch analysis from position: 73
1 jumps found. (Code = 42) Position 1 = 76
Branch analysis from position: 76
2 jumps found. (Code = 43) Position 1 = 86, Position 2 = 88
Branch analysis from position: 86
1 jumps found. (Code = 42) Position 1 = 89
Branch analysis from position: 89
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 88
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 75
2 jumps found. (Code = 43) Position 1 = 86, Position 2 = 88
Branch analysis from position: 86
Branch analysis from position: 88
Branch analysis from position: 62
2 jumps found. (Code = 43) Position 1 = 73, Position 2 = 75
Branch analysis from position: 73
Branch analysis from position: 75
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 60, Position 2 = 62
Branch analysis from position: 60
Branch analysis from position: 62
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 49
Branch analysis from position: 47
Branch analysis from position: 49
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
Branch analysis from position: 36
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
Branch analysis from position: 23
filename:       /in/JYWFr
function name:  (null)
number of ops:  92
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'rand'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $0      
          5        MOD                                              ~1      $0, 3
          6        IS_EQUAL                                                 ~1, 1
          7      > JMPZ                                                     ~2, ->10
          8    >   QM_ASSIGN                                        ~3      <true>
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~3      <false>
         11    >   SEND_VAL                                                 ~3
         12        DO_ICALL                                                 
    3    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'rand'
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 2
         17        DO_ICALL                                         $5      
         18        MOD                                              ~6      $5, 3
         19        IS_EQUAL                                                 ~6, 1
         20      > JMPZ                                                     ~7, ->23
         21    >   QM_ASSIGN                                        ~8      <true>
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~8      <false>
         24    >   SEND_VAL                                                 ~8
         25        DO_ICALL                                                 
    4    26        INIT_FCALL                                               'var_dump'
         27        INIT_FCALL                                               'rand'
         28        SEND_VAL                                                 0
         29        SEND_VAL                                                 2
         30        DO_ICALL                                         $10     
         31        MOD                                              ~11     $10, 3
         32        IS_EQUAL                                                 ~11, 1
         33      > JMPZ                                                     ~12, ->36
         34    >   QM_ASSIGN                                        ~13     <true>
         35      > JMP                                                      ->37
         36    >   QM_ASSIGN                                        ~13     <false>
         37    >   SEND_VAL                                                 ~13
         38        DO_ICALL                                                 
    5    39        INIT_FCALL                                               'var_dump'
         40        INIT_FCALL                                               'rand'
         41        SEND_VAL                                                 0
         42        SEND_VAL                                                 2
         43        DO_ICALL                                         $15     
         44        MOD                                              ~16     $15, 2
         45        IS_EQUAL                                                 ~16, 1
         46      > JMPZ                                                     ~17, ->49
         47    >   QM_ASSIGN                                        ~18     <true>
         48      > JMP                                                      ->50
         49    >   QM_ASSIGN                                        ~18     <false>
         50    >   SEND_VAL                                                 ~18
         51        DO_ICALL                                                 
    6    52        INIT_FCALL                                               'var_dump'
         53        INIT_FCALL                                               'rand'
         54        SEND_VAL                                                 0
         55        SEND_VAL                                                 2
         56        DO_ICALL                                         $20     
         57        MOD                                              ~21     $20, 2
         58        IS_EQUAL                                                 ~21, 1
         59      > JMPZ                                                     ~22, ->62
         60    >   QM_ASSIGN                                        ~23     <true>
         61      > JMP                                                      ->63
         62    >   QM_ASSIGN                                        ~23     <false>
         63    >   SEND_VAL                                                 ~23
         64        DO_ICALL                                                 
    7    65        INIT_FCALL                                               'var_dump'
         66        INIT_FCALL                                               'rand'
         67        SEND_VAL                                                 0
         68        SEND_VAL                                                 2
         69        DO_ICALL                                         $25     
         70        MOD                                              ~26     $25, 2
         71        IS_EQUAL                                                 ~26, 1
         72      > JMPZ                                                     ~27, ->75
         73    >   QM_ASSIGN                                        ~28     <true>
         74      > JMP                                                      ->76
         75    >   QM_ASSIGN                                        ~28     <false>
         76    >   SEND_VAL                                                 ~28
         77        DO_ICALL                                                 
    8    78        INIT_FCALL                                               'var_dump'
         79        INIT_FCALL                                               'rand'
         80        SEND_VAL                                                 0
         81        SEND_VAL                                                 2
         82        DO_ICALL                                         $30     
         83        MOD                                              ~31     $30, 2
         84        IS_EQUAL                                                 ~31, 1
         85      > JMPZ                                                     ~32, ->88
         86    >   QM_ASSIGN                                        ~33     <true>
         87      > JMP                                                      ->89
         88    >   QM_ASSIGN                                        ~33     <false>
         89    >   SEND_VAL                                                 ~33
         90        DO_ICALL                                                 
         91      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.97 ms | 1404 KiB | 17 Q