3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $prohibitedUsernames = [ '/', 'tags', 'new', 'spy', 'search', 'buy-tokens', 'unsubscribe', 'user', 'cams', 'top', 'favorites', 'followings', 'friends', 'gold-membership', 'login', 'signup', 'industry', 'forgot-password', 'confirm-email', 'confirm-payment-settings', 'reset-password', 'settings', 'studio', 'model', 'mobile', 'mobile_auth', 'messages', '2257', 'careers', 'copyrights', 'privacy', 'support', 'terms', 'start-broadcasting', 'tokens-history', 'studio-earnings', 'payments-history', 'payments-settings', 'model-news', 'i18n', '*', ]; print_r(array_rand($prohibitedUsernames));
based on QTJKm
Output for 5.6.11, 7.0.3, 7.2.6
40
Output for 5.6.0, 7.0.7, 7.1.5, 7.2.0
0
Output for 7.1.10
23
Output for 5.6.5, 7.0.0, 7.1.7
4
Output for 5.6.1, 5.6.17, 5.6.26, 7.0.8, 7.0.20, 7.1.6
35
Output for 5.6.3, 5.6.29, 7.0.17, 7.1.4
12
Output for 5.6.13, 5.6.15, 5.6.25, 7.1.3
39
Output for 5.6.10, 7.1.2
34
Output for 7.1.1
8
Output for 7.1.0
32
Output for 5.6.8, 5.6.20, 7.0.19
27
Output for 5.6.19, 7.0.18
21
Output for 5.6.30, 7.0.16
38
Output for 7.0.15
1
Output for 5.6.16, 7.0.14
19
Output for 5.6.7, 7.0.13
29
Output for 5.6.9, 5.6.23, 7.0.12
28
Output for 5.6.18, 7.0.11
10
Output for 5.6.27, 7.0.10
15
Output for 7.0.9
33
Output for 7.0.6
16
Output for 5.6.4, 5.6.21, 5.6.28, 7.0.5
20
Output for 7.0.4
3
Output for 7.0.2
24
Output for 7.0.1
2
Output for 5.6.2, hhvm-3.15.4
13
Output for 5.6.24
11
Output for 5.6.22
22
Output for 5.6.6, 5.6.14
37
Output for 5.6.12
9