3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $csv = explode(',', 'Acampo, Amador City, Antelope, Arden-Arcade, Auburn, Beal Afb, Birds Landing, Camino, Carmichael, Citrus Heights, Clarksburg, Colfax, Coloma, Cool, Courtland, Davis, Diamond Springs, Dixon, Drytown, El Dorado, Elk Grove, Elmira, Elverta, Fair Oaks, Fairfield, Folsom, Foresthill, French Camp, Galt, Garden Valley, Georgetown, Granite Bay, Grass Valley, Greenwood, Herald, Hood, Ione, Isleton, Jackson, Lathrop, Lincoln, Lockeford, Lodi, Loomis, Lotus, Manteca, Marysville, Mather, Mcclellan, Meadow Vista, Nevada City, Newcastle, Nicolaus, North Highlands, Olivehurst, Orangevale, Penn Valley, Penryn, Pilot Hill, Pine Grove, Placerville, Pleasant Grove, Plymouth, Pollock Pines, Rancho Cordova, Rescue, Rio Linda, Rio Oso, Rio Vista, Rocklin, Roseville, Rough and Ready, Ryde, Sacramento, Sheridan, Shingle Springs, Sloughhouse, Somerset, Stockton, Suisun City, Sutter Creek, Thornton, Travis Afb, Vacaville, Valley Springs, Walnut Grove, West Sacramento, Wheatland, Wilton, Winters, Woodbridge, Woodland, Yolo, Yuba City'); foreach ($csv as $item) { echo '<li><a href="/contact/?city='.url_encode(strttolower($item)).'">'.$item.'</a></li>' . "\r\n\"; }
based on t8Ias
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in /in/I6KJQ on line 101
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in /in/I6KJQ on line 101
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected $end in /in/I6KJQ on line 101
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected $ in /in/I6KJQ on line 101
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/I6KJQ on line 101
Process exited with code 255.