3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $a = ' adams allen allison alvarez anderson andrews armstrong arnold avila bailey baker barnes bennett bishop boyd bradley brooks brown bryan burke burton butler campbell carlson carr carter chase chen christensen clark collins comer cook cooper cox crawford cunningham davis day dean dickinson edwards elliott ellis evans fischer fisher fong ford freeman frost garcia gardner gomes gomez gonzales graham green griffin hall hamilton hansen hanson harris harrison hartman harvey hayes henderson henry hernandez hill holmes howard hughes hunt jackson jensen johnson jones keller kelley kennedy king lane long lopez marsh martinez mathews matthews mcdonald miller mitchell moore morgan morris nelson newton obrien oconnor olsen palmer parker patterson peck perkins perry peterson phillips powell price randolph reed rice richardson rivera rivers roberts robinson rodrigues rodriguez rogers romero ruis sanders santos shaw short silva simpson smith snyder spafford spencer springer stafford stewart stone sullivan taylor thompson turner walker wallace walton ward warner watson weber wells white williams wong wood woods wright young zimmermann Richey Gillis Immich Csaki Leandre Bar-Ness Brodrick Wiederhorn Vissers Meeter Hesselmans Wallaschek Sverdrup-Thygeson Selbey Cheps Fliess Visscher Pope Khazenie Tin Sayers Mokken Aitio Bretthorst Zhiglyavskii Gihman Dussauchoy Isham Casado Braun Volf Swishchuk Jeswani Gottinger Arber Ulvila Himelein Champernowne Sturrock Garver Rama Murthy Dixit Dunford McGaw van der Ven Hisdal Spivak Vince Bashirov Floyd Shoenfeld Solso Szuesz Skindlov Vora Steishunas Buiculescu Cid Edel Evarts Feir-Walsh Clissold Brennan Pave Kuchler Cavin McGloughlin Stephan '; $names = array(); $a = explode("\n", $a); for ($i = 0; $i < count($a); $i++){ $names[] = ucfirst(strtolower( explode(",", $a[$i])[0] )); } $names = array_unique($names); print join("',\n'", $names);
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
', 'Adams', 'Allen', 'Allison', 'Alvarez', 'Anderson', 'Andrews', 'Armstrong', 'Arnold', 'Avila', 'Bailey', 'Baker', 'Barnes', 'Bennett', 'Bishop', 'Boyd', 'Bradley', 'Brooks', 'Brown', 'Bryan', 'Burke', 'Burton', 'Butler', 'Campbell', 'Carlson', 'Carr', 'Carter', 'Chase', 'Chen', 'Christensen', 'Clark', 'Collins', 'Comer', 'Cook', 'Cooper', 'Cox', 'Crawford', 'Cunningham', 'Davis', 'Day', 'Dean', 'Dickinson', 'Edwards', 'Elliott', 'Ellis', 'Evans', 'Fischer', 'Fisher', 'Fong', 'Ford', 'Freeman', 'Frost', 'Garcia', 'Gardner', 'Gomes', 'Gomez', 'Gonzales', 'Graham', 'Green', 'Griffin', 'Hall', 'Hamilton', 'Hansen', 'Hanson', 'Harris', 'Harrison', 'Hartman', 'Harvey', 'Hayes', 'Henderson', 'Henry', 'Hernandez', 'Hill', 'Holmes', 'Howard', 'Hughes', 'Hunt', 'Jackson', 'Jensen', 'Johnson', 'Jones', 'Keller', 'Kelley', 'Kennedy', 'King', 'Lane', 'Long', 'Lopez', 'Marsh', 'Martinez', 'Mathews', 'Matthews', 'Mcdonald', 'Miller', 'Mitchell', 'Moore', 'Morgan', 'Morris', 'Nelson', 'Newton', 'Obrien', 'Oconnor', 'Olsen', 'Palmer', 'Parker', 'Patterson', 'Peck', 'Perkins', 'Perry', 'Peterson', 'Phillips', 'Powell', 'Price', 'Randolph', 'Reed', 'Rice', 'Richardson', 'Rivera', 'Rivers', 'Roberts', 'Robinson', 'Rodrigues', 'Rodriguez', 'Rogers', 'Romero', 'Ruis', 'Sanders', 'Santos', 'Shaw', 'Short', 'Silva', 'Simpson', 'Smith', 'Snyder', 'Spafford', 'Spencer', 'Springer', 'Stafford', 'Stewart', 'Stone', 'Sullivan', 'Taylor', 'Thompson', 'Turner', 'Walker', 'Wallace', 'Walton', 'Ward', 'Warner', 'Watson', 'Weber', 'Wells', 'White', 'Williams', 'Wong', 'Wood', 'Woods', 'Wright', 'Young', 'Zimmermann', 'Richey', 'Gillis', 'Immich', 'Csaki', 'Leandre', 'Bar-ness', 'Brodrick', 'Wiederhorn', 'Vissers', 'Meeter', 'Hesselmans', 'Wallaschek', 'Sverdrup-thygeson', 'Selbey', 'Cheps', 'Fliess', 'Visscher', 'Pope', 'Khazenie', 'Tin', 'Sayers', 'Mokken', 'Aitio', 'Bretthorst', 'Zhiglyavskii', 'Gihman', 'Dussauchoy', 'Isham', 'Casado', 'Braun', 'Volf', 'Swishchuk', 'Jeswani', 'Gottinger', 'Arber', 'Ulvila', 'Himelein', 'Champernowne', 'Sturrock', 'Garver', 'Rama murthy', 'Dixit', 'Dunford', 'Mcgaw', 'Van der ven', 'Hisdal', 'Spivak', 'Vince', 'Bashirov', 'Floyd', 'Shoenfeld', 'Solso', 'Szuesz', 'Skindlov', 'Vora', 'Steishunas', 'Buiculescu', 'Cid', 'Edel', 'Evarts', 'Feir-walsh', 'Clissold', 'Brennan', 'Pave', 'Kuchler', 'Cavin', 'Mcgloughlin', 'Stephan
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/hqVUD on line 239
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/hqVUD on line 239
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/hqVUD on line 239
Process exited with code 255.