3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $list = 'Joey Brooks Christian Carmine Boyce Rosario Rayford Winfred Scotty Hank Armand Devon Carl Antonia Kendrick Benny Dee Al Reyes Leonardo Duncan Gary Ollie Jacques Gerry German Wyatt Reginald Rodger Valentin Toby Rene Shayne Randall Santo Art Winston Bryant Justin Clinton Augustus Andrew Jody Reid Wilfredo Shelton Harris Kris Abe Chris'; $list = explode("\n", $list); array_unique($list); $letters = array('a', 'e', 'i', 'o', 'l'); $numbers = array('@', '3', '!', '0', '1'); foreach($list as $l){ $comma .= strtolower($l).", "; $reg .= "'".strtolower($l)."'=>'".str_replace($letters, $numbers, strtolower($l))."',"; $rep .= "'".str_replace($letters, $numbers, strtolower($l))."'=>'".strtolower($l)."',"; } echo '<textarea style="width:400px;height:200px"> ## LIST OF '.$comma.' $word_universe[]=array('.$reg.'); $word_universe[]=array('.$rep.'); </textarea>'; ?>
Output for 5.6.0 - 7.3.0rc3
Notice: Undefined variable: comma in /in/1uELu on line 60 Notice: Undefined variable: reg in /in/1uELu on line 61 Notice: Undefined variable: rep in /in/1uELu on line 62 <textarea style="width:400px;height:200px"> ## LIST OF joey, brooks, christian, carmine, boyce, rosario, rayford, winfred, scotty, hank, armand, devon, carl, antonia, kendrick, benny, dee, al, reyes, leonardo, duncan, gary, ollie, jacques, gerry, german, wyatt, reginald, rodger, valentin, toby, rene, shayne, randall, santo, art, winston, bryant, justin, clinton, augustus, andrew, jody, reid, wilfredo, shelton, harris, kris, abe, chris, $word_universe[]=array('joey'=>'j03y','brooks'=>'br00ks','christian'=>'chr!st!@n','carmine'=>'c@rm!n3','boyce'=>'b0yc3','rosario'=>'r0s@r!0','rayford'=>'r@yf0rd','winfred'=>'w!nfr3d','scotty'=>'sc0tty','hank'=>'h@nk','armand'=>'@rm@nd','devon'=>'d3v0n','carl'=>'c@r1','antonia'=>'@nt0n!@','kendrick'=>'k3ndr!ck','benny'=>'b3nny','dee'=>'d33','al'=>'@1','reyes'=>'r3y3s','leonardo'=>'130n@rd0','duncan'=>'dunc@n','gary'=>'g@ry','ollie'=>'011!3','jacques'=>'j@cqu3s','gerry'=>'g3rry','german'=>'g3rm@n','wyatt'=>'wy@tt','reginald'=>'r3g!n@1d','rodger'=>'r0dg3r','valentin'=>'v@13nt!n','toby'=>'t0by','rene'=>'r3n3','shayne'=>'sh@yn3','randall'=>'r@nd@11','santo'=>'s@nt0','art'=>'@rt','winston'=>'w!nst0n','bryant'=>'bry@nt','justin'=>'just!n','clinton'=>'c1!nt0n','augustus'=>'@ugustus','andrew'=>'@ndr3w','jody'=>'j0dy','reid'=>'r3!d','wilfredo'=>'w!1fr3d0','shelton'=>'sh31t0n','harris'=>'h@rr!s','kris'=>'kr!s','abe'=>'@b3','chris'=>'chr!s',); $word_universe[]=array('j03y'=>'joey','br00ks'=>'brooks','chr!st!@n'=>'christian','c@rm!n3'=>'carmine','b0yc3'=>'boyce','r0s@r!0'=>'rosario','r@yf0rd'=>'rayford','w!nfr3d'=>'winfred','sc0tty'=>'scotty','h@nk'=>'hank','@rm@nd'=>'armand','d3v0n'=>'devon','c@r1'=>'carl','@nt0n!@'=>'antonia','k3ndr!ck'=>'kendrick','b3nny'=>'benny','d33'=>'dee','@1'=>'al','r3y3s'=>'reyes','130n@rd0'=>'leonardo','dunc@n'=>'duncan','g@ry'=>'gary','011!3'=>'ollie','j@cqu3s'=>'jacques','g3rry'=>'gerry','g3rm@n'=>'german','wy@tt'=>'wyatt','r3g!n@1d'=>'reginald','r0dg3r'=>'rodger','v@13nt!n'=>'valentin','t0by'=>'toby','r3n3'=>'rene','sh@yn3'=>'shayne','r@nd@11'=>'randall','s@nt0'=>'santo','@rt'=>'art','w!nst0n'=>'winston','bry@nt'=>'bryant','just!n'=>'justin','c1!nt0n'=>'clinton','@ugustus'=>'augustus','@ndr3w'=>'andrew','j0dy'=>'jody','r3!d'=>'reid','w!1fr3d0'=>'wilfredo','sh31t0n'=>'shelton','h@rr!s'=>'harris','kr!s'=>'kris','@b3'=>'abe','chr!s'=>'chris',); </textarea>