3v4l.org

run code in 300+ PHP versions simultaneously
<?php $random_key = ''; for( $i = 0; $i < 64; $i++) { $random_key .= ((bool)rand(0, 1) ? chr(rand(65, 90)) : rand(0, 9)); } print strlen($random_key) . "\n"; print $random_key . "\n";
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 = 27, Position 2 = 3
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 3
Branch analysis from position: 27
Branch analysis from position: 3
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 3
Branch analysis from position: 27
Branch analysis from position: 3
filename:       /in/iRVgN
function name:  (null)
number of ops:  33
compiled vars:  !0 = $random_key, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->25
    5     3    >   INIT_FCALL                                               'rand'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $4      
          7        BOOL                                             ~5      $4
          8      > JMPZ                                                     ~5, ->18
          9    >   INIT_FCALL                                               'chr'
         10        INIT_FCALL                                               'rand'
         11        SEND_VAL                                                 65
         12        SEND_VAL                                                 90
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                         $7      
         16        QM_ASSIGN                                        ~8      $7
         17      > JMP                                                      ->23
         18    >   INIT_FCALL                                               'rand'
         19        SEND_VAL                                                 0
         20        SEND_VAL                                                 9
         21        DO_ICALL                                         $9      
         22        QM_ASSIGN                                        ~8      $9
         23    >   ASSIGN_OP                                     8          !0, ~8
    4    24        PRE_INC                                                  !1
         25    >   IS_SMALLER                                               !1, 64
         26      > JMPNZ                                                    ~12, ->3
    8    27    >   STRLEN                                           ~13     !0
         28        CONCAT                                           ~14     ~13, '%0A'
         29        ECHO                                                     ~14
    9    30        CONCAT                                           ~15     !0, '%0A'
         31        ECHO                                                     ~15
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.1 ms | 1396 KiB | 17 Q