3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $exclude = array('anus','arse','butt','clit','cock','coon','cunt','dago','damn','dick','dike','dyke','fuck','gook','heeb','hell','hobo','homo','jizz','knob','kunt','muff','niga','paki','piss','poon','poop','puta','puto','shit','shiz','slut','tard','tits','titz','turd','twat','wank'); $leet = array(); $chars = array('i','a','t'); $leetChars = array('1','4','7'); foreach ( $exclude as $word ) { $leet[] = str_replace($chars,$leetChars,$word); } $exclude = array_merge($exclude,$leet); $exclude = array_unique($exclude); var_dump($exclude);
based on VtNp1
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(63) { [0]=> string(4) "anus" [1]=> string(4) "arse" [2]=> string(4) "butt" [3]=> string(4) "clit" [4]=> string(4) "cock" [5]=> string(4) "coon" [6]=> string(4) "cunt" [7]=> string(4) "dago" [8]=> string(4) "damn" [9]=> string(4) "dick" [10]=> string(4) "dike" [11]=> string(4) "dyke" [12]=> string(4) "fuck" [13]=> string(4) "gook" [14]=> string(4) "heeb" [15]=> string(4) "hell" [16]=> string(4) "hobo" [17]=> string(4) "homo" [18]=> string(4) "jizz" [19]=> string(4) "knob" [20]=> string(4) "kunt" [21]=> string(4) "muff" [22]=> string(4) "niga" [23]=> string(4) "paki" [24]=> string(4) "piss" [25]=> string(4) "poon" [26]=> string(4) "poop" [27]=> string(4) "puta" [28]=> string(4) "puto" [29]=> string(4) "shit" [30]=> string(4) "shiz" [31]=> string(4) "slut" [32]=> string(4) "tard" [33]=> string(4) "tits" [34]=> string(4) "titz" [35]=> string(4) "turd" [36]=> string(4) "twat" [37]=> string(4) "wank" [38]=> string(4) "4nus" [39]=> string(4) "4rse" [40]=> string(4) "bu77" [41]=> string(4) "cl17" [44]=> string(4) "cun7" [45]=> string(4) "d4go" [46]=> string(4) "d4mn" [47]=> string(4) "d1ck" [48]=> string(4) "d1ke" [56]=> string(4) "j1zz" [58]=> string(4) "kun7" [60]=> string(4) "n1g4" [61]=> string(4) "p4k1" [62]=> string(4) "p1ss" [65]=> string(4) "pu74" [66]=> string(4) "pu7o" [67]=> string(4) "sh17" [68]=> string(4) "sh1z" [69]=> string(4) "slu7" [70]=> string(4) "74rd" [71]=> string(4) "717s" [72]=> string(4) "717z" [73]=> string(4) "7urd" [74]=> string(4) "7w47" [75]=> string(4) "w4nk" }