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='.url_encode(strttolower($item)).'">'.$item.'</a></li>' . "\r\n\"; //<li><a href="/contact/?city=el+dorado+hills">El Dorado Hills</a></li> }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.32
Parse error: syntax error, unexpected '?' in /in/t8Ias 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/t8Ias on line 101
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/t8Ias on line 101
Process exited with code 255.

preferences:
219.54 ms | 1386 KiB | 123 Q