3v4l.org

run code in 300+ PHP versions simultaneously
<?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='.urlencode(strtolower($item)).'">'.$item.'</a></li>; }
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected ''</a></li>;' (T_ENCAPSED_AND_WHITESPACE) in /in/eXr0T on line 100
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/eXr0T on line 100
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/eXr0T on line 100 Parse error: syntax error, unexpected '<' in /in/eXr0T on line 100
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
Parse error: syntax error, unexpected $end in /in/eXr0T on line 101
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected $ in /in/eXr0T on line 101
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/eXr0T on line 101
Process exited with code 255.

preferences:
223.3 ms | 1395 KiB | 123 Q