3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( 'Nesaie Alke, Thorakitai Warrant Officer (Spitfire)', "Atalanta, Agema's NCO & Spotbot(MULTI Sniper & Spotter)", 'Diomedes, Ekdromoi Officer', 'Pentesilea', 'Aleph Support Pack', 'Pheonix. Veteran Myrmidon Officer (Heavy Rocket Launcher)', 'Aleph: Ajax the Great', 'The Steel Phalanx', 'Aleph: Chandra Spec-Ops', 'Ekdromoi (Combi Rifle)', 'Deva Functionaries', 'Dasyus (MULTI Sniper)', 'Myrmidons', 'Posthumans', 'Patroclus', 'Yudbots and Netrods (Ghost Servant and A.I Beacon)', 'Aleph - Myrmidon Officer with Combi Rifle, Boarding Shotgun', 'Dakini Tactbots (HMG)', 'Asuras (Spitfire)', 'ALEPH Probots', 'Aleph - Dasyus (Hacker)', 'Aleph Sophotect', 'Aleph Myrmidons', 'ALEPH Achilles (SP)', 'Rebots', 'Caledonian Mormaer (AP HMG)', '9th Wulver Grenadiers Regiment', 'The Scots Guards, 6th Caledonian Infantry Regiment', 'Caledonian Volunteers (HMG)', 'Ariadna - Briscards 8th Mountain Infantry Regiment', 'Ariadna: Briscards (Heavy Rocket Launcher)', 'Uxia McNeill', 'Ariadna: Intel Spec-Ops', 'Metros', 'Dozers, Campaign Engineers', 'Force de Reponse Rapid Merovingienne', 'Zouaves', '2nd Irregular Cameronians Regiment', 'Traktor Muls. Regiment of Artillery Support', 'Loup-Garou', 'Line Kazak (HMG)', '9th Wulver Grenadiers (Mk12, Grenades)', 'S.A.S. (Chain Rifle)', '112 Emergency Service Doctor', 'Dozers, Field Engineers', 'Highlander Cateran', 'Moblots (Sapper) HMG', 'William Wallace', 'Troupes Metropolitaines', 'Shasvastii Expeditionary Unit Aswuang (Spitfire)', 'Shasvastii Light Support Unit Haiduk', 'Shasvastii Caliban (Feuerbach)', 'Special Operative Ko Dali', 'Raicho Armoured Brigade TAG', 'Ikadron Batdroids and Imetron', 'Combined Army: Shasvastii Corax Spec-Ops', 'Combined Army: Treitak Spec-Ops', 'Agent Cadmus-Naish Sheskiin', 'Malignos (Hacker)', 'Shasvastii Gwailos (Spitfire)', 'Shasvastii Noctifers', 'Zerat', 'Sogarat (HMG)', 'Shasvastii Armored Corps Sphinx', 'Combined Army - Kurgat - Reg. of Assault Engineers (Autocannon)', 'Skiavoros (Plasma Rifle)', 'Combined Army - Noctifers (Spitfire)', 'Combined Army Morat Kurgat Assault Engineer', 'Combined Army - Yaogat Strike Infantry', 'Combined Army Shasvastii Gwailo (MR)', 'Combined Army Morat Yaogat', 'Shasvastii Aswuang (BS)', 'The Hungries Gakis and Pretas', 'Shasvastii Gwailo', 'Qapu Khalqi Sectorial Starter Pack', 'Infinity Bootleg - Maghariba Guard Pilot', 'Hassassin Barids', 'Haqqislam Support Pack', 'KTS, Kaplan Tactical Services', 'Sekban. Special Naval Unit (Heavy Rocket Launcher)', 'Haqqislam: Hassassin Muyibs', 'Haqqislam: KTS, Kaplan Tactical Services (Spitfire)', 'Haqqislam: Husam Spec-Ops', 'Hassassin Muyibs', 'Odalisques', 'Hafza (Spitfire)', 'Janissaries', 'Al Hawwa Unit', 'Hassassin Farzans', 'Hussein Al-Djabel, Hassassin Fiday', 'Janissaires (AP Rifle)', 'Djanbazan Tactical Group (HMG)', 'Haqqislaam - Kameel Remote', 'Haqqislam - Asawira Regiment (Spitfire)', 'Haqqislam - Djanbazans (Hacker)', "Haqqislam - Al Hawwa' Unit (Hacker)", 'Haqqislam - Khawarijs (Rifle + Light Shotgun)', 'Haqquislam - Hassassin Muyibs', 'Haqqislam - Hafza w/ rifle & light shotgun', 'Iguana Squadron', 'Infinity Bootleg - Lizard Squadron Pilot', 'Hellcats', 'Corregidor Jurisdictional Command', 'Reverend Moiras', 'Nomads - Wildcats, Polyvalent Tactical Unit (Heavy Rocket Launcher)', 'Riot Grrls', 'Nomads: Moderators (MULTI Sniper)', 'Nomads: Wildcats, Polyvalent Tactical Unit (Spitfire)', 'Nomad: Vortex Spec-Ops', 'Riot Grrls (Spitfire)', 'Nomads Support Pack', 'Daktaris 2', 'Hellcats (Boarding Shotgun)', 'Reverend Custodiers', 'Der Morlock Gruppe', 'Zeros (Hacker)', 'Prowlers (Combi Rifle, ADHL)', 'Nomads - Sin-Eater Observants - HMG', 'Reverend Custodiers (Hacker, Combi Rifle + Marker)', 'Nomads - Bakunin Uberfallkommando', 'Nomad Sergeant Carlota Kowalsky and Moriarty', 'Nomad - Prowler', 'Moderators from Bakunin (Spitfire)', 'Nomad Bakunin Jurisdictional Force Starter Pack', 'Croc Man (Boarding Shotgun)', 'Infinity Bootleg - Tech Bees', 'Knights of Santiago (Combi Rifle)', 'Kirpal Sighn, Akalis Sergeant', 'PanOceania Support Pack', 'Crusader Brethren (HMG)', 'Knight Hospitalier (HMG)', 'Crusader Brethren', 'Pan Oceania: Indigo Spec-Ops', 'Knight of the Holy Sepulchre (Spitfire)', 'Mulebots', 'Hospitalier Knight Father-Officer Gabriele De Fersen', 'Jotums', 'Teutonic Knights', 'Dragoes, Acontecimento Dragoons', 'Nisses (MULTI Sniper Rifle)', 'Orc Troop (Multi Rifle)', 'Hexas - MULTI Sniper', 'Order Sergeants (Spitfire)', 'Guarda de Assalto', 'Magister Knights', 'Order Sergeants', 'Armoured Cavalry', 'Panoceania - Teutonic Knight', 'Military Order (PanOceania Sectorial Starter Pack)', 'Kamael Light Infantry', 'Tohaa Support Pack', 'Sakiel Regiment (Spitfire)', 'Tohaa Chaksa Auxiliars', 'Gao Tarsos (Combi Rifle)', 'Tohaa - Gao Rael (Spitfire)', 'Makaul Troops', 'Tohaa: Hatail Spec Ops', 'Gao Rael (Sniper Rifle)', 'Tohaa Diplomatic Delegates', 'Tohaa Starter Pack', 'Imperial Agent Pheasant Rank(MULTI Sniper)', 'Infinity Bootleg - O-Yoroi Pilot', 'Asuka Kisaragi and Aragoto Senkenbutai Jun-I', 'Domaru Takeshi Neko Oyama', 'Bao Troops, Judicional Watch Unit', 'Yu Jing - Celestial Guard (Hacker)', 'Yu Jing: Hac Tao (HMG)', 'Wu Ming Assault Corps', 'Yu Jing: Gui Feng', 'Yaoxie Remotes (Lu Duan / Rui Shi)', 'Shaolin Warrior Monks', 'Yu Jing Support Pack', 'Sun Tze v.2 (Marksman Leader)', 'Yaopu Pangguling', 'Tokusetsu Butai', 'Imperial Agents, Crane Rank', 'Invincible (HMG)', 'Karakuri Special Project', 'Yu-Jing - O-Yoroi Kidobutai (TAG)', 'Yu Jing Haramaki Zensenbutai (ML)', 'Yu Jing - Haramaki Zensenbutai', 'Yu Jing Oniwaban Shinobu Kitsune', 'Yu Jing - Chinese The Imperial Service Starter Pack', 'Su-Jian Immediate Action Unit (Spitfire, Panzerfaust)', 'Imperial Agent, Pheasant Rank (Yĕ Jī) (MCCW)', 'Infinity Bootleg - Joe "Scarface" Turner', 'McMurrough - Mercenary (2 x Chain Rifle, AP & Shock CCW)', 'Mercenaries: Scarface & Cordelia. Armored Mercenary Team', 'Druze Shock Team', 'Father Lucien Sforza (Viral Rifle + ADHL)', 'Miyamoto Mushashi', 'Mercenary Senor Massacre', 'Valerya Gromoz (Hacker)', 'Avicenna (Doctor)', 'Saito Togan (Combi, EXP CCW) Mercenary', 'Mercenaries: Yuan Yuan (Rifle, ChainRifle)', 'Large Tech Crates', 'Concrete Wall Gate', 'Concrete Wall Set 2', 'Concrete Wall Set 1', 'Concrete Wall Right', 'Concrete Wall Straight', 'Concrete Wall Holoboard', 'Tech Crates #1', 'Infinity Range Card Imperial Orange', 'Infinity Range Card CM Orange', 'Infinity Tokens Special 2', 'Infinity Tokens Shavasti', 'Infinity Tokens Wounds', 'Infinity Tokens Irregular/Impetous', 'Infinity Tokens Regular', 'Infinity Tokens Deployables Set 3', 'Infinity Tokens Deployables Set 2', 'Infinity Tokens Deployables Set 1', 'Infinity Tokens Camo blue', 'Infinity Tokens Camo Yellow', 'Infinity Tokens Camo Purple', 'Infinity Tokens Camo Metro', 'Infinity Tokens Starter', 'Infinity Tokens Camo Azar', 'Infinity Token Camo Paradiso', 'Infinity - Artbook One', 'Infinity - Artbook One - with Limited Edition Miniature', 'Infinity : Campaign Paradiso', 'The Human Sphere - Expansion Rulebook', 'Infinity 2nd Edition Rules' ); foreach($arr as $item){ preg_match_all('/([a-z0-9]+)/i',$item,$m); var_dump($m); exit; echo implode('-',$m); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> array(6) { [0]=> string(6) "Nesaie" [1]=> string(4) "Alke" [2]=> string(10) "Thorakitai" [3]=> string(7) "Warrant" [4]=> string(7) "Officer" [5]=> string(8) "Spitfire" } [1]=> array(6) { [0]=> string(6) "Nesaie" [1]=> string(4) "Alke" [2]=> string(10) "Thorakitai" [3]=> string(7) "Warrant" [4]=> string(7) "Officer" [5]=> string(8) "Spitfire" } }