3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fake_solution="1100111010110111010010100101111101111011101101011100100001110011001110010011011011101100011100100010100011011000101011010001000010000000010110101111101001101000"; srand(0); //for me... in this server... the first rand() value after srand(0) gives "1804289383" for($i=0;$i<strlen($fake_solution);$i++){ $fake_solution[$i]=$fake_solution[$i]^(rand()%2); } echo($fake_solution);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/a03uv
function name:  (null)
number of ops:  19
compiled vars:  !0 = $fake_solution, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1100111010110111010010100101111101111011101101011100100001110011001110010011011011101100011100100010100011011000101011010001000010000000010110101111101001101000'
    5     1        INIT_FCALL                                               'srand'
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
    7     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->14
    8     6    >   FETCH_DIM_R                                      ~6      !0, !1
          7        INIT_FCALL                                               'rand'
          8        DO_ICALL                                         $7      
          9        MOD                                              ~8      $7, 2
         10        BW_XOR                                           ~9      ~6, ~8
         11        ASSIGN_DIM                                               !0, !1
         12        OP_DATA                                                  ~9
    7    13        PRE_INC                                                  !1
         14    >   STRLEN                                           ~11     !0
         15        IS_SMALLER                                               !1, ~11
         16      > JMPNZ                                                    ~12, ->6
   11    17    >   ECHO                                                     !0
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.14 ms | 940 KiB | 18 Q