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'); $leetChars = array('1','4'); foreach ( $exclude as $word ) { $leet[] = str_replace($chars,$leetChars,$word); } $exclude = array_merge($exclude,$leet); var_dump($exclude);
based on 01PNH
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(76) { [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) "butt" [41]=> string(4) "cl1t" [42]=> string(4) "cock" [43]=> string(4) "coon" [44]=> string(4) "cunt" [45]=> string(4) "d4go" [46]=> string(4) "d4mn" [47]=> string(4) "d1ck" [48]=> string(4) "d1ke" [49]=> string(4) "dyke" [50]=> string(4) "fuck" [51]=> string(4) "gook" [52]=> string(4) "heeb" [53]=> string(4) "hell" [54]=> string(4) "hobo" [55]=> string(4) "homo" [56]=> string(4) "j1zz" [57]=> string(4) "knob" [58]=> string(4) "kunt" [59]=> string(4) "muff" [60]=> string(4) "n1g4" [61]=> string(4) "p4k1" [62]=> string(4) "p1ss" [63]=> string(4) "poon" [64]=> string(4) "poop" [65]=> string(4) "put4" [66]=> string(4) "puto" [67]=> string(4) "sh1t" [68]=> string(4) "sh1z" [69]=> string(4) "slut" [70]=> string(4) "t4rd" [71]=> string(4) "t1ts" [72]=> string(4) "t1tz" [73]=> string(4) "turd" [74]=> string(4) "tw4t" [75]=> string(4) "w4nk" }