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','o','s','e','b'); $leetChars = array('1','4','7','0','5','3','8'); foreach ( $exclude as $word ) { $leet[] = str_replace('i','1',$word); $leet[] = str_replace('a','4',$word); $leet[] = str_replace('t','7',$word); $leet[] = str_replace('o','0',$word); $leet[] = str_replace('s','5',$word); $leet[] = str_replace('e','3',$word); $leet[] = str_replace('b','8',$word); $leet[] = str_replace($chars,$leetChars,$word); } $exclude = array_merge($exclude,$leet); $exclude = array_unique($exclude); var_dump($exclude);
based on CQalJ
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(119) { [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" [39]=> string(4) "4nus" [42]=> string(4) "anu5" [45]=> string(4) "4nu5" [47]=> string(4) "4rse" [50]=> string(4) "ar5e" [51]=> string(4) "ars3" [53]=> string(4) "4r53" [56]=> string(4) "bu77" [60]=> string(4) "8utt" [61]=> string(4) "8u77" [62]=> string(4) "cl1t" [64]=> string(4) "cli7" [69]=> string(4) "cl17" [73]=> string(4) "c0ck" [81]=> string(4) "c00n" [88]=> string(4) "cun7" [95]=> string(4) "d4go" [97]=> string(4) "dag0" [101]=> string(4) "d4g0" [103]=> string(4) "d4mn" [110]=> string(4) "d1ck" [118]=> string(4) "d1ke" [123]=> string(4) "dik3" [125]=> string(4) "d1k3" [131]=> string(4) "dyk3" [145]=> string(4) "g00k" [155]=> string(4) "h33b" [156]=> string(4) "hee8" [157]=> string(4) "h338" [163]=> string(4) "h3ll" [169]=> string(4) "h0b0" [172]=> string(4) "ho8o" [173]=> string(4) "h080" [177]=> string(4) "h0m0" [182]=> string(4) "j1zz" [193]=> string(4) "kn0b" [196]=> string(4) "kno8" [197]=> string(4) "kn08" [200]=> string(4) "kun7" [214]=> string(4) "n1ga" [215]=> string(4) "nig4" [221]=> string(4) "n1g4" [222]=> string(4) "pak1" [223]=> string(4) "p4ki" [229]=> string(4) "p4k1" [230]=> string(4) "p1ss" [234]=> string(4) "pi55" [237]=> string(4) "p155" [241]=> string(4) "p00n" [249]=> string(4) "p00p" [255]=> string(4) "put4" [256]=> string(4) "pu7a" [261]=> string(4) "pu74" [264]=> string(4) "pu7o" [265]=> string(4) "put0" [269]=> string(4) "pu70" [270]=> string(4) "sh1t" [272]=> string(4) "shi7" [274]=> string(4) "5hit" [277]=> string(4) "5h17" [278]=> string(4) "sh1z" [282]=> string(4) "5hiz" [285]=> string(4) "5h1z" [288]=> string(4) "slu7" [290]=> string(4) "5lut" [293]=> string(4) "5lu7" [295]=> string(4) "t4rd" [296]=> string(4) "7ard" [301]=> string(4) "74rd" [302]=> string(4) "t1ts" [304]=> string(4) "7i7s" [306]=> string(4) "tit5" [309]=> string(4) "7175" [310]=> string(4) "t1tz" [312]=> string(4) "7i7z" [317]=> string(4) "717z" [320]=> string(4) "7urd" [327]=> string(4) "tw4t" [328]=> string(4) "7wa7" [333]=> string(4) "7w47" [335]=> string(4) "w4nk" }