3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Tasodifiy kod generatsiya qiluvchi funksiya function generateFormattedCode() { // Harflar va raqamlar to'plami $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $charactersLength = strlen($characters); // Format: CUBE-XXXX-XXXX-XXXX-XXXX $format = 'CUBE-XXXX-XXXX-XXXX-XXXX'; $formattedCode = ''; // Format bo'yicha kod yaratish for ($i = 0; $i < strlen($format); $i++) { if ($format[$i] === 'X') { $formattedCode .= $characters[rand(0, $charactersLength - 1)]; } else { $formattedCode .= $format[$i]; } } return $formattedCode; } // Bir necha o'yin kodi generatsiya qilish function generateMultipleCodes($count) { $codes = []; // $count miqdorida kod yaratish for ($i = 0; $i < $count; $i++) { $codes[] = generateFormattedCode(); } return $codes; } // 10 ta kod generatsiya qilish $gameCodes = generateMultipleCodes(4); // Natijani ko'rsatish foreach ($gameCodes as $code) { echo $code . PHP_EOL; } ?>
Output for 8.3.12
CUBE-P7YC-K9IH-T41O-ZGAJ CUBE-6G3M-NZV1-GOUB-CH8U CUBE-YCML-OJQO-ORKW-64QA CUBE-8XNJ-UQDW-K8LM-DP7G
Output for 8.3.11
CUBE-4KC0-KBI3-7WKE-H0JY CUBE-MMGH-592J-NNY9-6FGB CUBE-IICI-9T18-QDMS-YHQZ CUBE-8SHE-YE38-0BU6-VNJO
Output for 8.3.10
CUBE-05UA-1HMU-MCQV-BNGT CUBE-5YC0-NVWZ-96V5-EMVV CUBE-IF0O-CGKI-25BO-9L3R CUBE-PPYM-NW7U-D26K-SZ87
Output for 8.3.9
CUBE-OE1V-MSBD-VSU7-ZL5O CUBE-1SXK-V4MA-4XHS-0OM2 CUBE-7JW0-V4HT-2K6N-43O5 CUBE-19EE-1BZA-45PF-ZFET
Output for 8.3.8
CUBE-H010-NZAH-G22D-CYY4 CUBE-0EFW-O2QA-Y93P-DELO CUBE-E7EQ-7J2R-BUCQ-QG8R CUBE-4TKB-J111-OJQ7-DOR8
Output for 8.3.7
CUBE-VRLV-DEF8-34YA-3YMW CUBE-WSH4-L8MX-ONL5-BOW9 CUBE-BSIF-NPL6-GJYP-973U CUBE-W8T4-VT1J-368D-IRBC
Output for 8.3.6
CUBE-0N86-NYP7-VEWG-0TXT CUBE-0QBB-ABH5-4UK7-8UUH CUBE-KY2N-80QR-O1X5-L44H CUBE-MN60-D3GY-7K2L-WZL7
Output for 8.3.5
CUBE-ILZP-XTCC-FFO9-UF1X CUBE-K4SL-5ZPR-TNL3-L84V CUBE-33XY-G0NS-DOVY-X710 CUBE-GNYV-KPPE-5CWA-97J8
Output for 8.3.4
CUBE-Q4A7-Z32P-7RUM-8ANQ CUBE-7FN9-RE5Q-TP45-XJQZ CUBE-F1LZ-AO4G-JQZH-I4KU CUBE-64IH-9X96-3V27-8YPN
Output for 8.3.3
CUBE-YYMM-H95U-CY3G-0SJA CUBE-MEYJ-953N-F1PD-0JD0 CUBE-NI9E-1AJM-FO5X-ROTX CUBE-WC9T-3UXV-LCZK-HX3P
Output for 8.3.2
CUBE-WWSD-8QFC-G642-PJXQ CUBE-Y221-TOVP-Q1A7-72L7 CUBE-BGW8-S022-V37Z-Z16F CUBE-651E-0Z0M-80Q5-3DS4
Output for 8.3.1
CUBE-NZ2B-QFSI-LKTS-M14I CUBE-IDWL-Y5ZI-OHBL-HEW9 CUBE-RF1B-KBT9-YE0O-2XUK CUBE-5XIY-50NI-5ZDD-LZTA
Output for 8.3.0
CUBE-6GW8-UM2G-NEP8-VHTU CUBE-2LNE-351U-YDTV-WLC4 CUBE-CFZS-4XRM-SK6T-V75D CUBE-YLQB-X2GV-5FMD-R5UL
Output for 8.2.24
CUBE-5WKH-I0RP-Q9SY-9MWV CUBE-6QME-IM5X-YRNQ-SCXV CUBE-KBKM-JVUV-4C0X-ON4I CUBE-J54K-EL6K-G0PX-IY76
Output for 8.2.23
CUBE-MBLP-X8WX-KP3X-9R5N CUBE-F6DB-8JWA-63WD-A2MC CUBE-V22P-MW80-6BLF-NSJG CUBE-1C7V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6-1NDC-HB6I
Output for 8.2.3
CUBE-26U3-PI43-C5UA-UDIV CUBE-LNJM-B0X7-AE17-10VD CUBE-CV09-7347-UAYO-9IU9 CUBE-I7ZE-CZXG-Z8DH-1P1L
Output for 8.2.2
CUBE-YJ01-WS11-XCUG-8L8F CUBE-86NN-EJ7D-IBCL-34BP CUBE-LIYZ-IUEP-AB05-MC16 CUBE-0S3O-W3O6-4L04-3P9Q
Output for 8.2.1
CUBE-MEBZ-VD9M-SZUN-EL0S CUBE-TQ4D-FTJQ-F40V-2J80 CUBE-N3KK-Y1SO-2OGB-CMWQ CUBE-DXHP-W7S9-HXXQ-8RTS
Output for 8.2.0
CUBE-49AF-SLZN-GIDA-WS29 CUBE-6XX8-BNG3-F9XH-XR4E CUBE-3VLJ-R0ER-5ROP-5GA9 CUBE-4SKD-8RNI-P83W-VAWO
Output for 8.1.30
CUBE-JTMB-DOWP-OMXO-0PNB CUBE-3WFI-2M1K-EOIH-MM2O CUBE-B6H0-2D59-E6C0-IYIX CUBE-FF8S-JBM8-DN1Y-590Q
Output for 8.1.29
CUBE-KUV7-YZCP-I4XT-WXB3 CUBE-W596-DECY-YMOB-A2OO CUBE-OY3T-WWP7-7VMD-QFFV CUBE-91OD-M5HY-DSAW-URKZ
Output for 8.1.28
CUBE-KZVU-4WR4-XLO3-QAIB CUBE-3UFX-E7WI-H5HK-GCFV CUBE-4PZH-DJ83-4W1P-OA54 CUBE-JK5L-79QO-E4WV-NI21
Output for 8.1.27
CUBE-YF74-NSCZ-TB5D-9YN2 CUBE-E9EK-1385-DFX8-LI7V CUBE-2DVI-H0HV-SZE2-L0P4 CUBE-WOL0-8NGR-5GHP-7GXL
Output for 8.1.26
CUBE-TAY7-EU6L-87IL-XWUT CUBE-0AOT-HPOF-LMT9-9RAJ CUBE-DDRL-ARWS-245R-BWWI CUBE-0DLU-0EMF-KLNT-UIRK
Output for 8.1.25
CUBE-O1IT-CKBF-V00Y-EPPT CUBE-D89L-ON83-72JR-LRMX CUB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-IS0H-N6DI-VM37-RBC5 CUBE-YHFG-WC91-KLAP-T51C
Output for 8.1.5
CUBE-DTA8-8P4H-A3A4-ZT86 CUBE-KS4R-TG6A-AT6N-YW8V CUBE-VXII-E6OP-8HNY-7GTN CUBE-L5KI-6HMD-WHFF-KAE7
Output for 8.1.4
CUBE-UQAM-7LXZ-DQF4-RCFH CUBE-JKJH-5BMH-0HRV-JHJK CUBE-KLA2-1UPM-XJSB-SFBY CUBE-IND7-6CBT-XKFX-RO6G
Output for 8.1.3
CUBE-C17T-TIJE-SBXX-5E9D CUBE-HKUP-133P-26S0-DO7K CUBE-U7IY-99L7-YN68-INVN CUBE-6TPY-JJDG-DB61-QO5M
Output for 8.1.2
CUBE-GHOK-8BIG-NLB9-A0WH CUBE-22XF-870V-B9VY-6XM3 CUBE-1ZHS-CAQV-AGPE-PPGZ CUBE-HTTY-PK4U-RTPJ-Y8VL
Output for 8.1.1
CUBE-34LP-0MX0-3MQU-N72X CUBE-WC38-2MWL-FJ0M-NZBN CUBE-P8WO-OSFT-N3SH-7R83 CUBE-ULQS-7TMP-RT8W-Q10V
Output for 8.1.0
CUBE-6N3T-L379-Z8TI-0SHE CUBE-QBJA-TSMW-K4WB-PZRX CUBE-EITW-ALFN-1KMY-P75V CUBE-C6IX-Z9ZG-FPGR-Q2NU

preferences:
43.08 ms | 508 KiB | 5 Q