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-XXX-XXXX-XXXX-XXX $formattedCode = 'CUBE-'; // 3 ta belgini generatsiya qilish for ($i = 0; $i < 3; $i++) { $formattedCode .= $characters[rand(0, $charactersLength - 1)]; } $formattedCode .= '-'; // 4 ta belgini generatsiya qilish for ($i = 0; $i < 4; $i++) { $formattedCode .= $characters[rand(0, $charactersLength - 1)]; } $formattedCode .= '-'; // Yana 4 ta belgini generatsiya qilish for ($i = 0; $i < 4; $i++) { $formattedCode .= $characters[rand(0, $charactersLength - 1)]; } $formattedCode .= '-'; // Oxirgi 3 ta belgini generatsiya qilish for ($i = 0; $i < 3; $i++) { $formattedCode .= $characters[rand(0, $charactersLength - 1)]; } 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(10); // Natijani ko'rsatish foreach ($gameCodes as $code) { echo $code . PHP_EOL; } ?>
Output for git.master_jit
CUBE-F67-HMJV-NS5L-BXV CUBE-OPH-4O46-4C49-MWE CUBE-43S-KVPV-MCJ0-F1Y CUBE-P73-X7BJ-F95R-E3T CUBE-GMP-8AP4-6LHH-VNM CUBE-F78-F6XV-MPNM-7YQ CUBE-4BU-8LRL-BEL4-IPV CUBE-MXD-9VBM-FFN6-L90 CUBE-BHX-YGE3-5T25-ZWL CUBE-JZB-YDAW-9K8V-8YV
Output for git.master
CUBE-V8E-J672-JOV8-QNG CUBE-5PU-XWU4-ICX1-8WE CUBE-AFI-XDWN-0ZSM-4M7 CUBE-LIB-WH62-3PKU-Q3A CUBE-VAT-0AKQ-VMUM-T2M CUBE-N7Q-GHRB-XB6Z-ULQ CUBE-PVJ-2G3J-FFOQ-DXD CUBE-5XY-EYHD-B6CP-KY6 CUBE-THE-821Z-AH0Y-GDD CUBE-8JW-IUAQ-CGUK-7BH

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
26.17 ms | 406 KiB | 5 Q