3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/value=\"([^"]+)\"/'; $str = '<option value="">--None--</option><option value="Abandon">Abandon</option><option value="A l\'essai">A l\'essai</option><option value="Client NF">Client NF</option><option value="Competitor">Competitor</option><option value="Customer">Customer</option><option value="Distributeur">Distributeur</option><option value="Distributeur MM">Distributeur MM</option><option value="Ex-client">Ex-client</option><option value="Fournisseur">Fournisseur</option><option value="Fournisseur DNS">Fournisseur DNS</option><option value="FSI">FSI</option><option value="Integrator">Integrator</option><option value="Other">Other</option><option value="Partner">Partner</option><option value="Press">Press</option><option value="Prospect">Prospect</option><option value="Prospect - CEIM">Prospect - CEIM</option><option value="Prospect - distributeur">Prospect - distributeur</option><option value="Revendeur">Revendeur</option><option value="Prospect MxLogic">Prospect MxLogic</option><option value="Distributeur à l\'essai">Distributeur à l\'essai</option>'; $subst = ''; preg_match_all($re, $str, $matches); foreach($matches[1] as $match) { echo 'const ' . strtoupper(preg_replace('/[^\w]+/u', '_', $match)) .' = \''.$match.'\';' . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
const ABANDON = 'Abandon'; const A_L_ESSAI = 'A l'essai'; const CLIENT_NF = 'Client NF'; const COMPETITOR = 'Competitor'; const CUSTOMER = 'Customer'; const DISTRIBUTEUR = 'Distributeur'; const DISTRIBUTEUR_MM = 'Distributeur MM'; const EX_CLIENT = 'Ex-client'; const FOURNISSEUR = 'Fournisseur'; const FOURNISSEUR_DNS = 'Fournisseur DNS'; const FSI = 'FSI'; const INTEGRATOR = 'Integrator'; const OTHER = 'Other'; const PARTNER = 'Partner'; const PRESS = 'Press'; const PROSPECT = 'Prospect'; const PROSPECT_CEIM = 'Prospect - CEIM'; const PROSPECT_DISTRIBUTEUR = 'Prospect - distributeur'; const REVENDEUR = 'Revendeur'; const PROSPECT_MXLOGIC = 'Prospect MxLogic'; const DISTRIBUTEUR_à_L_ESSAI = 'Distributeur à l'essai';

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:
59.88 ms | 402 KiB | 8 Q