3v4l.org

run code in 300+ PHP versions simultaneously
<?php $runs = 10; while($runs--){ if(mt_rand(-2147483648, mt_getrandmax()) == 0){ echo "Yes!"; } //echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
Branch analysis from position: 2
Branch analysis from position: 11
filename:       /in/0BHS3
function name:  (null)
number of ops:  14
compiled vars:  !0 = $runs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    3     1      > JMP                                                      ->11
    4     2    >   INIT_FCALL                                               'mt_rand'
          3        SEND_VAL                                                 -2147483648
          4        INIT_FCALL                                               'mt_getrandmax'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        IS_EQUAL                                                 $3, 0
          9      > JMPZ                                                     ~4, ->11
    5    10    >   ECHO                                                     'Yes%21'
    3    11    >   POST_DEC                                         ~5      !0
         12      > JMPNZ                                                    ~5, ->2
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.64 ms | 1394 KiB | 17 Q