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: GAME-XXXX-XXXX-XXXX-XXXX $format = 'GAME-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
GAME-TN2Q-FP0B-WVC1-10H8 GAME-GZGK-YTAP-E05M-3EIH GAME-FPJP-DMV9-0IWH-E6HO GAME-BYAO-UZ46-M4MU-DAOS
Output for 8.3.11
GAME-9JIW-UGDY-GNGK-JVLX GAME-ZLKS-KB8I-RB97-XB0H GAME-53B9-DZ2L-MJHO-XH2U GAME-FCR9-7DXM-P2A9-GQBH
Output for 8.3.10
GAME-M8W7-TS4G-VSNX-MF4Y GAME-ZHDT-EBJN-RTS9-1W55 GAME-8MZU-76FL-GUI2-6R57 GAME-3YK2-SMYF-XIDK-KERU
Output for 8.3.9
GAME-EJ2X-AS7B-UQ61-D1ZF GAME-AY6T-S2H4-DQCU-P31F GAME-90XL-5VT9-VOS5-JRUW GAME-LIRQ-40L6-WSVS-WZGD
Output for 8.3.8
GAME-DBC2-SGTL-JC3W-CF16 GAME-LFJO-LDB1-I6LH-NCMY GAME-90D3-J6YM-Q5DV-ULCV GAME-KHPQ-TTD8-1AJL-277T
Output for 8.3.7
GAME-Y1M9-2Q93-HNNO-FFBR GAME-4QYR-BVRI-PJRU-G7IF GAME-G09Z-F0Y7-GWBU-B2PO GAME-MF7Q-MMGE-N3DS-D6HL
Output for 8.3.6
GAME-25C5-O7NU-ZIPW-R06J GAME-DZD0-61J8-FO3B-3B2P GAME-NB8U-MQE5-4TS1-THFH GAME-MM3X-BJIB-RFTE-DEWA
Output for 8.3.5
GAME-DCO9-GS9V-97HB-X8PU GAME-NA4K-M7OZ-GIAQ-BC6D GAME-C3CR-WH1Y-9SEZ-XQFR GAME-NYBN-I9NU-ARLB-9ZAY
Output for 8.3.4
GAME-NQUP-GTSY-1P4L-ICPI GAME-A69E-MGKD-D056-8YZQ GAME-FWEO-20SE-372P-R1PS GAME-HVA0-F2OB-MI6L-QXUP
Output for 8.3.3
GAME-FFN0-D7G9-RCP2-SE19 GAME-CF86-O2L6-QOC6-TX42 GAME-DTNN-CUT6-JLUJ-ISZ4 GAME-LRH1-HD0B-E1LY-XQU9
Output for 8.3.2
GAME-HSDA-SHDB-SQAI-NQWB GAME-3LM9-G2PM-NVBE-MBNU GAME-37NY-23QT-H34P-1CK1 GAME-1KFI-MP5S-H3US-MFWY
Output for 8.3.1
GAME-7FYW-PO9E-5P1D-ISA5 GAME-ESPK-C84M-L5JI-232W GAME-GDHH-3A4O-N697-P6W7 GAME-LWM4-2F0L-H9B0-OXJ5
Output for 8.3.0
GAME-2CXM-VFKB-UICS-ZH1B GAME-PRM6-QSSY-U54E-HW4E GAME-BWWP-YS8I-MLF8-B6OJ GAME-L6EM-YQW2-F3I2-NWBO
Output for 8.2.24
GAME-QA3D-HLO4-CPIE-UANH GAME-JUMM-MFUG-A30P-C3C8 GAME-NDLZ-R5WQ-8BAL-EJD0 GAME-5I1J-PKD2-WPF5-PXH1
Output for 8.2.23
GAME-HIXE-U1KT-YDTJ-LQVH GAME-3OJR-AAO8-UZSY-EFHM GAME-9DBS-YJFZ-PAUN-VLSO GAME-7SOU-0MMM-TUN3-A3ET
Output for 8.2.22
GAME-FZ5V-ILAY-UZHX-NV6Y GAME-X705-0PPS-ACOQ-TKYZ GAME-4WXJ-8E0P-JEPL-C0I8 GAME-RE56-UBLH-8TS5-U9XJ
Output for 8.2.21
GAME-UT99-79A8-F7S9-0Q3Z GAME-88WN-PM6M-YQQV-S7C9 GAME-4OWO-OKDN-WG6M-F66E GAME-2NJD-7XZG-X4V6-8RIB
Output for 8.2.20
GAME-51XL-13DA-HHHU-UO6Y GAME-DRYA-M8NX-TB71-APEE GAME-DCYW-5EK7-QE25-17C1 GAME-BP9L-C6GH-9459-L7GU
Output for 8.2.19
GAME-NFWH-XKIU-RN6B-AMJ5 GAME-X4BJ-0SUM-A9UZ-AK2A GAME-6WE9-ZBFW-KMG0-OHZ6 GAME-TK4K-V4P4-4OK3-M156
Output for 8.2.18
GAME-WHQG-NKPM-WLK3-Y60L GAME-K8UR-58JG-227L-8XPL GAME-EKZW-VK8V-JYLE-80W8 GAME-RNQ3-6R45-7P7O-QM7D
Output for 8.2.17
GAME-PKDZ-IVW9-U69B-CBS6 GAME-WSEL-RDBV-7ARD-PIJW GAME-R8FL-1AVY-E2K5-5BTN GAME-MLKI-CFPQ-IIDW-V8XU
Output for 8.2.16
GAME-6RIL-I8L5-FEBA-V504 GAME-699K-8C23-GVZ9-TYWY GAME-V6HM-SWNV-O0PV-EKRU GAME-W75N-H691-OEF2-082S
Output for 8.2.15
GAME-HISJ-TN0D-Q0XH-GZCD GAME-LQO9-UT6Q-TJI8-55YC GAME-1LUZ-RRH7-07RT-89SF GAME-0LKK-FN56-OTQV-8T5S
Output for 8.2.14
GAME-Q47C-Q4GA-I9QV-8P0Z GAME-9QRO-52QQ-45G5-E8YE GAME-JO2S-E0QK-KJ82-2A13 GAME-L3SC-GMPI-I6XI-MPX8
Output for 8.2.13
GAME-8E2M-D6BP-H3TH-HRR9 GAME-Y5OE-L64B-GSGM-QRL6 GAME-U9S5-BK9X-LZOZ-PBEP GAME-GEIN-VYRQ-NN9Q-RCW2
Output for 8.2.12
GAME-DK5M-BKZ8-NHWJ-I4LJ GAME-197B-R5OM-4ZGE-892F GAME-KEUY-JNFQ-AL2Y-7J9A GAME-H4EG-M7ZC-XIYO-14XM
Output for 8.2.11
GAME-9BK8-157J-QP8I-GOZU GAME-KJA6-QGWQ-GCP9-B53C GAME-ZDEW-XN1Z-1927-THC4 GAME-FVC6-9D8V-MPZS-OKCJ
Output for 8.2.10
GAME-7CTM-T74P-5KGO-H15W GAME-C0X9-FBNO-MXA2-PJTF GAME-9LT0-15KK-W6X2-V2QL GAME-KFIM-PNZI-4C52-LD45
Output for 8.2.9
GAME-JILQ-K4UX-QGIL-4BKD GAME-587B-BZIK-4WNN-5TQO GAME-3VKB-JHGW-3BW7-0Z6B GAME-72K8-90VN-XIVF-ZN45
Output for 8.2.8
GAME-2XGK-OJHD-UAYL-LWU6 GAME-SGA5-E1X0-HZ2K-6U40 GAME-YP3N-2J1K-T08Z-BK7D GAME-RPXM-V7YU-JJUM-MPJ8
Output for 8.2.7
GAME-WH3D-YOJC-LK2D-XYD2 GAME-LE38-Z5RC-GC95-R3BH GAME-TFHN-MWPN-GTE6-FRUU GAME-URKU-SCOB-61BG-S5NQ
Output for 8.2.6
GAME-6J7N-1O99-DZC3-8WOS GAME-7VHG-80LV-JHZR-3GKL GAME-DJC5-45FE-H05Y-OGNO GAME-MBBJ-WVM5-0D7K-GLJ5
Output for 8.2.5
GAME-27X2-T3AQ-XSFP-RHKL GAME-UNAB-NXIK-1OBY-IPVE GAME-MG1J-H6XS-2MV8-RRXO GAME-9UZW-RYR0-TG1Z-Y3LW
Output for 8.2.4
GAME-AS9W-Y4Y7-9OBS-XWIZ GAME-R3F6-476G-LFHF-OLYT GAME-CE6J-QCHV-SYA5-EBFY GAME-AIYT-72OR-O1SV-1F0M
Output for 8.2.3
GAME-KUYS-I057-EZ91-HV01 GAME-HKEE-8KE6-DFM8-7TVH GAME-JFR1-WN8K-IHQ0-LAMH GAME-K1TU-B169-YN5B-H1A9
Output for 8.2.2
GAME-V3LU-PFRW-39LX-YJ84 GAME-Z4TW-TLRL-5ZKF-KT6C GAME-G236-KVX3-FGOT-N957 GAME-Q1UL-OGKQ-7QO7-JHGQ
Output for 8.2.1
GAME-KI3Z-C22Z-QCCN-9ZOZ GAME-WXYB-BOYU-POP2-LZUS GAME-FUBA-HBS7-FTS4-8AR1 GAME-86G2-IJ3Z-9G60-PXIQ
Output for 8.2.0
GAME-LQ3E-NVZD-H0RW-P0QZ GAME-5ZZZ-GURR-P6UJ-9YHN GAME-TRBA-APLL-3W0H-S3TR GAME-9CHH-F70I-BJX5-F1H9
Output for 8.1.30
GAME-RIJS-J18Y-GRD6-U1OM GAME-WGR1-B1FB-UBSS-F5XF GAME-UUGN-DDE7-GR87-SFLV GAME-CEHD-007H-C0VM-RLO0
Output for 8.1.29
GAME-NS4Q-ONR5-F1MB-Q28A GAME-RU9L-6Z14-9F0N-W0BP GAME-06YC-Y39W-93NH-B2PY GAME-FI44-UAFX-WCPG-1GN6
Output for 8.1.28
GAME-M6M0-WSVN-P8VV-E39Q GAME-LG7A-AO02-3Y34-CZD4 GAME-I9F7-J4J9-P1V0-XWEQ GAME-IWP3-VG79-KLGG-KMEQ
Output for 8.1.27
GAME-5RYX-K64L-83S4-2HU8 GAME-MAMW-CUOU-V504-8Z41 GAME-Z7OU-YGKI-KDS4-8FQ4 GAME-8M1M-HI6A-NRDP-MCPG
Output for 8.1.26
GAME-COO1-SC38-A6FO-TEBJ GAME-E7VD-76L2-N1RG-8Q04 GAME-T4JS-8BD7-YQAQ-X43I GAME-XGJH-4JS3-HNWJ-VI6L
Output for 8.1.25
GAME-9WNO-P78V-844T-PIZU GAME-6BRX-0EVU-LFX6-B98C GAME-2X3R-GUWS-8RN2-VFTE GAME-E0MA-3WJA-UF8A-36ET
Output for 8.1.24
GAME-F6KO-KA0S-6QNC-V27S GAME-JQ51-ZACX-KGH1-UE06 GAME-4BC1-R3X0-A8JB-L8NN GAME-41W3-6JNP-BD1V-R4Z4
Output for 8.1.23
GAME-5D9O-WLXH-JN1Z-5LAB GAME-3KEF-DE8A-6Z8F-THCH GAME-2B7B-0Z9H-LFF1-0BR2 GAME-3C0B-Q1VX-QDY7-SRGA
Output for 8.1.22
GAME-C9NN-PD8G-TR2J-Z2G8 GAME-V8SG-3PGK-20MQ-42N6 GAME-82LN-4LQW-S0VL-ZZI5 GAME-TA45-MHF3-CEGA-GQTP
Output for 8.1.21
GAME-5SU8-SVGI-0Y54-K9CT GAME-OIM6-MM1N-1KO8-47AB GAME-1MXQ-BD8G-0RZB-BZAL GAME-DXTA-09FU-YYP4-PTRS
Output for 8.1.20
GAME-GYCN-6R7Q-D1HB-M3SQ GAME-REKX-QUP0-I1GU-BR86 GAME-7STT-SXPC-L0W0-W2SQ GAME-Z1XL-IIW2-LT6W-4TL4
Output for 8.1.19
GAME-X6UY-XZAL-Y91U-S2SK GAME-6GA7-1YKW-JINN-HYX7 GAME-S8IJ-66EL-ECUL-FIJ2 GAME-GNTZ-4RQ0-6XO0-4NQF
Output for 8.1.18
GAME-YUDB-LR00-ABV4-Y7JS GAME-5MW5-O7WA-48MZ-6RSU GAME-ENP0-SMH7-CH8C-6LLP GAME-G1T9-8MQR-48FT-OGJC
Output for 8.1.17
GAME-J284-EI86-BGMB-0SPW GAME-JX3T-K4U1-DBPM-MRW8 GAME-8CNV-D2CA-3E6T-7NX8 GAME-YKH2-UWAJ-I7EI-OE47
Output for 8.1.16
GAME-RH32-DZ72-HVN4-GBIR GAME-CVGU-HEYW-AJWP-TCLL GAME-TKLK-OT7V-86VN-1MSA GAME-HWCG-NRZJ-UCP5-6P6P
Output for 8.1.15
GAME-2IBD-2BL5-GLPD-CYJK GAME-765C-H7EP-CAX0-3LZQ GAME-DXLE-SKXN-KM8V-NYOY GAME-CMO8-74JI-D3ZR-JKUT
Output for 8.1.14
GAME-T546-0XS4-7WEZ-HNJG GAME-MG2S-HO83-VBA1-0EDU GAME-PRL0-CLRG-M3UG-QT05 GAME-4Q24-KUNC-U6A9-IK99
Output for 8.1.13
GAME-OC3W-GAAF-CQBP-13BL GAME-G3GH-NY7R-9AVO-5Y5W GAME-4S0L-GBG7-HX4G-QHG5 GAME-3BQJ-JGJX-PAI2-YG18
Output for 8.1.12
GAME-2EAE-N201-W2E7-OVVD GAME-NWX5-N855-10N6-VNA0 GAME-L4ER-FEW2-J9CO-MQUY GAME-VZQQ-8R9I-PGXS-KK5P
Output for 8.1.11
GAME-QZ83-CS8E-2W4W-N1OY GAME-J5W4-B61B-I4HQ-QD25 GAME-1IVD-R9UD-3K5L-8KAE GAME-186L-N1XD-IB4X-I711
Output for 8.1.10
GAME-TINS-JG34-C5B1-WY57 GAME-KHTN-SJ7M-TS70-5HTW GAME-V9BP-FTUF-C8X6-BW1D GAME-1W7T-MP2G-B39D-LR0O
Output for 8.1.9
GAME-T8ZJ-RE65-7TCM-VK3B GAME-4SP7-K44R-WY78-9JRO GAME-QD3T-Z2GL-DR06-NLBQ GAME-G3ZV-EYLG-TW1I-XA95
Output for 8.1.8
GAME-F0U6-Y5W4-XU2O-HC19 GAME-WR6B-Q7VP-CL9I-PMZC GAME-VR9B-AJFZ-CQ8C-0PVO GAME-IDCB-JUVB-D9KN-QK8P
Output for 8.1.7
GAME-BV1T-0IR6-488I-S9Y5 GAME-DII4-F3P1-CLOY-8VIR GAME-Q20A-Z4TC-DXP1-7RYH GAME-B6X1-2E95-FA17-3KT4
Output for 8.1.6
GAME-HVNT-JN7E-7NIO-I3IF GAME-3F3W-OLO1-PA3X-VUG4 GAME-NB7V-BPBA-MGKA-3R83 GAME-C324-ZZXK-X8YK-TT2P
Output for 8.1.5
GAME-UCHI-XGEX-D5DN-B8KJ GAME-XPLP-I1FU-WFK6-AV9F GAME-6X5S-7NFV-IICL-55I3 GAME-RW90-9IYH-42IO-0H5P
Output for 8.1.4
GAME-MGMX-OXO4-5BV0-DO1N GAME-N5O6-Y528-RESC-WKXV GAME-H5QX-Y3US-DB96-UR1T GAME-H9BY-2SUW-T6IQ-K8T2
Output for 8.1.3
GAME-ZQ4Y-H09Q-SH15-2Y6M GAME-1R66-I2M3-E64Y-OZ4D GAME-AJIA-6BY1-O7MS-5IHL GAME-KXEK-V2G5-KIXP-9DU3
Output for 8.1.2
GAME-MVH8-OTBY-05LA-S4YV GAME-HIB9-DITT-MUTI-NLJ4 GAME-225O-TQS5-QNGB-VZ43 GAME-HWS9-061P-LZ1Y-QADV
Output for 8.1.1
GAME-PBYA-PKO2-XITO-2KIM GAME-W8DY-3J51-AUBJ-MPO6 GAME-TAIY-S120-817J-3NG8 GAME-HO07-BEU0-2NX0-JAEM
Output for 8.1.0
GAME-SDN4-02IE-X2RQ-56YO GAME-GD8R-HKTA-10U6-RH2N GAME-V49B-O8KV-0O1A-EEW8 GAME-NSUI-Y4JJ-QL6T-RQEC

preferences:
44.2 ms | 508 KiB | 5 Q