3v4l.org

run code in 500+ PHP versions simultaneously
<?php $values = array_merge(range('a', 'z'), range('A', 'Z')); $characters = []; while (count($characters) < 5) { shuffle($values); $characters[] = $values[0]; } $alphaString = implode($characters); print $alphaString;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 15
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 15
Branch analysis from position: 24
Branch analysis from position: 15
filename:       /in/tR5IF
function name:  (null)
number of ops:  28
compiled vars:  !0 = $values, !1 = $characters, !2 = $alphaString
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'array_merge'
          1        INIT_FCALL                                                   'range'
          2        SEND_VAL                                                     'a'
          3        SEND_VAL                                                     'z'
          4        DO_ICALL                                             $3      
          5        SEND_VAR                                                     $3
          6        INIT_FCALL                                                   'range'
          7        SEND_VAL                                                     'A'
          8        SEND_VAL                                                     'Z'
          9        DO_ICALL                                             $4      
         10        SEND_VAR                                                     $4
         11        DO_ICALL                                             $5      
         12        ASSIGN                                                       !0, $5
    5    13        ASSIGN                                                       !1, <array>
    6    14      > JMP                                                          ->21
    7    15    >   INIT_FCALL                                                   'shuffle'
         16        SEND_REF                                                     !0
         17        DO_ICALL                                                     
    8    18        FETCH_DIM_R                                          ~10     !0, 0
         19        ASSIGN_DIM                                                   !1
         20        OP_DATA                                                      ~10
    6    21    >   COUNT                                                ~11     !1
         22        IS_SMALLER                                                   ~11, 5
         23      > JMPNZ                                                        ~12, ->15
   11    24    >   FRAMELESS_ICALL_1                implode             ~13     !1
         25        ASSIGN                                                       !2, ~13
   13    26        ECHO                                                         !2
   14    27      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
145.92 ms | 1410 KiB | 16 Q