3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keywords = []; $keywords['general'] = [ 'fr' => [ '+auto +{Brand} ', '+Concessionnaire +{Brand}', '+offre +{Brand}', '+prix +{Brand}', '+Promotions +{Brand}', '+special +{Brand}', '+voitures +{Brand}', '+{Brand}', '+{Brand} +automobile', '+{Brand} +camion', '+{Brand} +camionnette', '+{Brand} +Canada', '+{Brand} +cars', '+{Brand} +dealer', '+{Brand} +minivan', '+{Brand} +neuf', '+{Brand} +new', '+{Brand} +offers', '+{Brand} +pick-up', '+{Brand} +pickup', '+{Brand} +price', '+{Brand} +rabais', '+{Brand} +site', '+{Brand} +suv', '+{Brand} +truck', '+{Brand} +vus', '+{Brand} +web', '+{Brand} +website', '+{Brand} +{CurrentYear}', '+{Brand} +{NextYear}', '+{Brand}.ca', '+{Brand}.com', ], ['en' => [ '+auto +{Brand}', '+Concessionnaire +{Brand}', '+offre +{Brand}', '+prix +{Brand}', '+Promotions +{Brand}', '+special +{Brand}', '+voitures +{Brand}', '+{Brand}', '+{Brand} +automobile', '+{Brand} +camion', '+{Brand} +camionnette', '+{Brand} +Canada', '+{Brand} +cars', '+{Brand} +dealer', '+{Brand} +minivan', '+{Brand} +neuf', '+{Brand} +new', '+{Brand} +offers', '+{Brand} +pick-up', '+{Brand} +pickup', '+{Brand} +price', '+{Brand} +rabais', '+{Brand} +site', '+{Brand} +suv', '+{Brand} +truck', '+{Brand} +vus', '+{Brand} +web', '+{Brand} +website', '+{Brand} +{CurrentYear}', '+{Brand} +{NextYear}', '+{Brand}.ca', '+{Brand}.com', ]] ]; $keywords['PHEV'] = [ 'fr' => [ '+voiture +rechargeable', '+auto +rechargeable', '+automobile +rechargeable', '+véhicule +rechargeable', '+vus +rechargeable', '+voiture +plug +in', '+plug +in +auto', '+auto +plug +in +hybride', '+vehicule +plug +in +hybride', '+voiture +phev', '+auto +phev', '+véhicule +phev', ], 'en' => [ '+phev +car', '+phev +auto', '+phev +vehicle', '+phev +suv', '+plug +in +car', '+plug +in +vehicle', '+plug +in +hybrid +car', '+plug +in +hybrid +auto', '+plug +in +suv', '+plugin +hybrid +car', '+plugin +suv', ], ]; $keywords['electric'] = [ 'fr' => [ '+voiture +électrique', '+auto +électrique', '+automobile +électrique', '+véhicule +électrique', '+voiture +branchable', '+auto +branchable', '+automobile +branchable', '+véhicule +branchable', '+vus +électrique', '+sedan +électrique', '+4 +portes +électrique', ], 'en' => [ '+electric +auto', '+electric +car', '+electric +vehicle', '+electric +suv', '+electric +4 +doors', '+plug-in +car', '+plugin +car', ] ]; $keywords['hybrid'] = [ 'fr' => [ '+voiture +hybride', '+auto +hybride', '+automobile +hybride', '+véhicule +hybride', '+vus +hybride', '+sedan +hybride', '+4 +portes +hybride', ], 'en' => [ '+hybrid +auto', '+hybrid +car', '+hybrid +vehicle', '+hybrid +suv', '+hybrid +4 +doors', ], ]; $fp = fopen('php://stdout', 'w'); foreach($keywords as $group => $languages ) { foreach($languages as $lang => $kwlist ) { foreach($kwlist as &$kw) { $kw = trim($kw); fputcsv($fp, [$group, $lang, $kw); } } }
Output for git.master_jit, git.master
Parse error: Unclosed '[' does not match ')' in /in/9U3HR on line 160
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
138.25 ms | 1007 KiB | 7 Q