3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $uniqueIds = []; while(count($uniqueIds) < 5) { $randomNumber = rand(1000, 9999); if (!in_array($randomNumber, $uniqueIds)) { $uniqueIds[] = $randomNumber; } } var_dump($uniqueIds);
based on vSh9H
Output for 7.1.0
array(5) { [0]=> int(3357) [1]=> int(3942) [2]=> int(4677) [3]=> int(8990) [4]=> int(4117) }
Output for 7.0.14
array(5) { [0]=> int(8357) [1]=> int(6978) [2]=> int(7960) [3]=> int(5069) [4]=> int(9036) }
Output for 7.0.6
array(5) { [0]=> int(9984) [1]=> int(3417) [2]=> int(7749) [3]=> int(2620) [4]=> int(5144) }
Output for 7.0.5
array(5) { [0]=> int(3843) [1]=> int(3622) [2]=> int(5496) [3]=> int(7609) [4]=> int(8120) }
Output for 7.0.4
array(5) { [0]=> int(2180) [1]=> int(7852) [2]=> int(6785) [3]=> int(7487) [4]=> int(4827) }
Output for 7.0.3
array(5) { [0]=> int(4933) [1]=> int(9771) [2]=> int(9436) [3]=> int(6920) [4]=> int(1787) }
Output for 7.0.2
array(5) { [0]=> int(1254) [1]=> int(7994) [2]=> int(7824) [3]=> int(9404) [4]=> int(8892) }
Output for 7.0.1
array(5) { [0]=> int(1041) [1]=> int(8463) [2]=> int(5381) [3]=> int(5241) [4]=> int(5965) }
Output for 7.0.0
array(5) { [0]=> int(7786) [1]=> int(9474) [2]=> int(7144) [3]=> int(3302) [4]=> int(3869) }
Output for hhvm-3.12.0
array(5) { [0]=> int(3038) [1]=> int(5252) [2]=> int(3069) [3]=> int(5734) [4]=> int(5391) }
Output for hhvm-3.10.0
array(5) { [0]=> int(6547) [1]=> int(3030) [2]=> int(2854) [3]=> int(1251) [4]=> int(3476) }
Output for 5.6.28
array(5) { [0]=> int(1922) [1]=> int(2610) [2]=> int(7477) [3]=> int(9561) [4]=> int(2583) }
Output for 5.6.21
array(5) { [0]=> int(3268) [1]=> int(9545) [2]=> int(7741) [3]=> int(5364) [4]=> int(3638) }
Output for 5.6.20
array(5) { [0]=> int(2009) [1]=> int(1728) [2]=> int(6916) [3]=> int(8218) [4]=> int(2378) }
Output for 5.6.19
array(5) { [0]=> int(8991) [1]=> int(1375) [2]=> int(5836) [3]=> int(5387) [4]=> int(7902) }
Output for 5.6.18
array(5) { [0]=> int(9217) [1]=> int(3849) [2]=> int(3568) [3]=> int(5665) [4]=> int(9374) }
Output for 5.6.17
array(5) { [0]=> int(8417) [1]=> int(5528) [2]=> int(3193) [3]=> int(2345) [4]=> int(5760) }
Output for 5.6.16
array(5) { [0]=> int(7180) [1]=> int(1130) [2]=> int(6868) [3]=> int(1782) [4]=> int(8940) }
Output for 5.6.15
array(5) { [0]=> int(1954) [1]=> int(7449) [2]=> int(7953) [3]=> int(7502) [4]=> int(9825) }
Output for 5.6.14
array(5) { [0]=> int(5273) [1]=> int(8279) [2]=> int(5218) [3]=> int(7973) [4]=> int(9998) }
Output for 5.6.13
array(5) { [0]=> int(4533) [1]=> int(3810) [2]=> int(3856) [3]=> int(3631) [4]=> int(7471) }
Output for 5.6.12
array(5) { [0]=> int(8890) [1]=> int(1928) [2]=> int(6509) [3]=> int(8655) [4]=> int(1273) }
Output for 5.6.11
array(5) { [0]=> int(1076) [1]=> int(2418) [2]=> int(7966) [3]=> int(6298) [4]=> int(5700) }
Output for 5.6.10
array(5) { [0]=> int(8885) [1]=> int(2040) [2]=> int(8869) [3]=> int(3640) [4]=> int(5792) }
Output for 5.6.9
array(5) { [0]=> int(8447) [1]=> int(2067) [2]=> int(9837) [3]=> int(8426) [4]=> int(7792) }
Output for 5.6.8
array(5) { [0]=> int(9339) [1]=> int(2365) [2]=> int(2477) [3]=> int(6426) [4]=> int(3446) }
Output for 5.5.35
array(5) { [0]=> int(2332) [1]=> int(3139) [2]=> int(2444) [3]=> int(6372) [4]=> int(7653) }
Output for 5.5.34
array(5) { [0]=> int(3214) [1]=> int(5169) [2]=> int(6894) [3]=> int(5741) [4]=> int(3533) }
Output for 5.5.33
array(5) { [0]=> int(9439) [1]=> int(6623) [2]=> int(5096) [3]=> int(2656) [4]=> int(3263) }
Output for 5.5.32
array(5) { [0]=> int(3685) [1]=> int(6177) [2]=> int(5464) [3]=> int(2274) [4]=> int(7846) }
Output for 5.5.31
array(5) { [0]=> int(1346) [1]=> int(7970) [2]=> int(4310) [3]=> int(1022) [4]=> int(7163) }
Output for 5.5.30
array(5) { [0]=> int(8355) [1]=> int(1961) [2]=> int(9120) [3]=> int(6423) [4]=> int(2078) }
Output for 5.5.29
array(5) { [0]=> int(5235) [1]=> int(4389) [2]=> int(6793) [3]=> int(5985) [4]=> int(6228) }
Output for 5.5.28
array(5) { [0]=> int(9448) [1]=> int(4363) [2]=> int(1259) [3]=> int(5945) [4]=> int(7313) }
Output for 5.5.27
array(5) { [0]=> int(3862) [1]=> int(1973) [2]=> int(8382) [3]=> int(8831) [4]=> int(2421) }
Output for 5.5.26
array(5) { [0]=> int(2232) [1]=> int(7012) [2]=> int(5258) [3]=> int(3630) [4]=> int(1036) }
Output for 5.5.25
array(5) { [0]=> int(1684) [1]=> int(2262) [2]=> int(5381) [3]=> int(4916) [4]=> int(1886) }
Output for 5.5.24
array(5) { [0]=> int(5425) [1]=> int(5142) [2]=> int(1083) [3]=> int(5326) [4]=> int(4402) }
Output for 5.4.45
array(5) { [0]=> int(6155) [1]=> int(9495) [2]=> int(7410) [3]=> int(4457) [4]=> int(2471) }
Output for 5.4.44
array(5) { [0]=> int(2264) [1]=> int(3470) [2]=> int(9790) [3]=> int(8772) [4]=> int(1328) }
Output for 5.4.43
array(5) { [0]=> int(7308) [1]=> int(8273) [2]=> int(3560) [3]=> int(3929) [4]=> int(5556) }
Output for 5.4.42
array(5) { [0]=> int(8265) [1]=> int(6158) [2]=> int(9542) [3]=> int(1539) [4]=> int(6349) }
Output for 5.4.41
array(5) { [0]=> int(3717) [1]=> int(1630) [2]=> int(5511) [3]=> int(2152) [4]=> int(3318) }
Output for 5.4.40
array(5) { [0]=> int(6779) [1]=> int(3434) [2]=> int(4392) [3]=> int(2708) [4]=> int(6593) }
Output for 5.4.39
array(5) { [0]=> int(3729) [1]=> int(1323) [2]=> int(7329) [3]=> int(8411) [4]=> int(4933) }
Output for 5.4.38
array(5) { [0]=> int(2446) [1]=> int(6280) [2]=> int(9002) [3]=> int(8095) [4]=> int(5252) }
Output for 5.4.37
array(5) { [0]=> int(6568) [1]=> int(3271) [2]=> int(7385) [3]=> int(2612) [4]=> int(8857) }
Output for 5.4.36
array(5) { [0]=> int(2475) [1]=> int(4910) [2]=> int(1248) [3]=> int(1244) [4]=> int(3325) }
Output for 5.4.35
array(5) { [0]=> int(9375) [1]=> int(8846) [2]=> int(9470) [3]=> int(5192) [4]=> int(2285) }
Output for 5.4.34
array(5) { [0]=> int(5750) [1]=> int(4163) [2]=> int(6600) [3]=> int(2890) [4]=> int(7428) }
Output for 5.4.32
array(5) { [0]=> int(7237) [1]=> int(6073) [2]=> int(4070) [3]=> int(1723) [4]=> int(3607) }
Output for 5.4.31
array(5) { [0]=> int(2536) [1]=> int(1213) [2]=> int(8312) [3]=> int(7849) [4]=> int(4464) }
Output for 5.4.30
array(5) { [0]=> int(5298) [1]=> int(1675) [2]=> int(5132) [3]=> int(1265) [4]=> int(6375) }
Output for 5.4.29
array(5) { [0]=> int(9308) [1]=> int(8538) [2]=> int(4917) [3]=> int(3626) [4]=> int(6647) }
Output for 5.4.28
array(5) { [0]=> int(6131) [1]=> int(6091) [2]=> int(7798) [3]=> int(6566) [4]=> int(9531) }
Output for 5.4.27
array(5) { [0]=> int(4791) [1]=> int(1430) [2]=> int(2886) [3]=> int(3249) [4]=> int(5949) }
Output for 5.4.26
array(5) { [0]=> int(5164) [1]=> int(8414) [2]=> int(1858) [3]=> int(2756) [4]=> int(3052) }
Output for 5.4.25
array(5) { [0]=> int(9485) [1]=> int(9563) [2]=> int(1991) [3]=> int(1205) [4]=> int(1342) }
Output for 5.4.24
array(5) { [0]=> int(2187) [1]=> int(2023) [2]=> int(8864) [3]=> int(2729) [4]=> int(2720) }
Output for 5.4.23
array(5) { [0]=> int(4156) [1]=> int(1745) [2]=> int(8749) [3]=> int(3084) [4]=> int(2997) }
Output for 5.4.22
array(5) { [0]=> int(4893) [1]=> int(2202) [2]=> int(6615) [3]=> int(4360) [4]=> int(4865) }
Output for 5.4.21
array(5) { [0]=> int(3182) [1]=> int(4026) [2]=> int(1715) [3]=> int(9166) [4]=> int(1566) }
Output for 5.4.20
array(5) { [0]=> int(2448) [1]=> int(9893) [2]=> int(1232) [3]=> int(5312) [4]=> int(5610) }
Output for 5.4.19
array(5) { [0]=> int(4465) [1]=> int(8124) [2]=> int(8731) [3]=> int(2820) [4]=> int(1085) }
Output for 5.4.18
array(5) { [0]=> int(2660) [1]=> int(5714) [2]=> int(3195) [3]=> int(7635) [4]=> int(8037) }
Output for 5.4.17
array(5) { [0]=> int(9786) [1]=> int(4343) [2]=> int(1613) [3]=> int(6675) [4]=> int(3019) }
Output for 5.4.16
array(5) { [0]=> int(6384) [1]=> int(9703) [2]=> int(7837) [3]=> int(7704) [4]=> int(3516) }
Output for 5.4.15
array(5) { [0]=> int(1087) [1]=> int(9033) [2]=> int(2612) [3]=> int(2586) [4]=> int(1604) }
Output for 5.4.14
array(5) { [0]=> int(9407) [1]=> int(2185) [2]=> int(9928) [3]=> int(2704) [4]=> int(2241) }
Output for 5.4.13
array(5) { [0]=> int(4018) [1]=> int(9958) [2]=> int(9465) [3]=> int(3425) [4]=> int(2004) }
Output for 5.4.12
array(5) { [0]=> int(6279) [1]=> int(1426) [2]=> int(5810) [3]=> int(5505) [4]=> int(3674) }
Output for 5.4.11
array(5) { [0]=> int(8499) [1]=> int(7556) [2]=> int(7553) [3]=> int(5364) [4]=> int(3831) }
Output for 5.4.10
array(5) { [0]=> int(2111) [1]=> int(4052) [2]=> int(9597) [3]=> int(6041) [4]=> int(4937) }
Output for 5.4.9
array(5) { [0]=> int(3538) [1]=> int(5516) [2]=> int(2443) [3]=> int(6867) [4]=> int(2337) }
Output for 5.4.8
array(5) { [0]=> int(4340) [1]=> int(4211) [2]=> int(2404) [3]=> int(1679) [4]=> int(2669) }
Output for 5.4.7
array(5) { [0]=> int(6979) [1]=> int(8898) [2]=> int(4457) [3]=> int(4877) [4]=> int(1847) }
Output for 5.4.6
array(5) { [0]=> int(6242) [1]=> int(1498) [2]=> int(9934) [3]=> int(9551) [4]=> int(3904) }
Output for 5.4.5
array(5) { [0]=> int(8138) [1]=> int(4615) [2]=> int(3688) [3]=> int(2312) [4]=> int(2416) }
Output for 5.4.4
array(5) { [0]=> int(4369) [1]=> int(7421) [2]=> int(6348) [3]=> int(6044) [4]=> int(5896) }
Output for 5.4.3
array(5) { [0]=> int(1362) [1]=> int(3313) [2]=> int(4651) [3]=> int(8307) [4]=> int(8442) }
Output for 5.4.2
array(5) { [0]=> int(8131) [1]=> int(5892) [2]=> int(5492) [3]=> int(3946) [4]=> int(5072) }
Output for 5.4.1
array(5) { [0]=> int(9195) [1]=> int(7677) [2]=> int(8622) [3]=> int(9989) [4]=> int(8894) }
Output for 5.4.0
array(5) { [0]=> int(1183) [1]=> int(3140) [2]=> int(5441) [3]=> int(5352) [4]=> int(5479) }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/q5ntj on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/q5ntj on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/q5ntj on line 3
Process exited with code 255.