3v4l.org

run code in 300+ PHP versions simultaneously
<?php $columns = <<<'NOWDOC' "icon", "status", "pk_application_id", "created_at", "cluster_description", "departement_description", "filer_name", "application_description", "application_reason_description", "application_group_description", "initial_costs_total", "annual_costs_total", "purchase_preference" NOWDOC; $headers = <<<'NOWDOC' "", "status", "nr", "datum", "cluster", "afdeling", "indiener", "omschrijving", "betreft", "groep", "aanschaf kosten", "jaarlijkse kosten", "gewenst jaar" NOWDOC; $columns = explode(',', preg_replace('\s++', '', $columns)); $headers = explode(',', preg_replace('\s++', '', $headers)); $size = count($columns); for ($i = 0; $i < $size; $i++) { printf('columns.add(%s); headers.add(%s);', $columns[$i], $headers[$i]); echo PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_replace(): Delimiter must not be alphanumeric, backslash, or NUL in /in/52W8N on line 14 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/52W8N on line 14 Warning: preg_replace(): Delimiter must not be alphanumeric, backslash, or NUL in /in/52W8N on line 15 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/52W8N on line 15 columns.add(); headers.add();

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