3v4l.org

run code in 300+ PHP versions simultaneously
<?php $systemTemplates = array( 'family' => array( 'product.category_overview' => 'Family Overview', 'product.category_overview_slideshow' => 'Family Overview W/ Slideshow', 'product.category_overview' => 'Family Overview No Parallax' ), 'category' => array( 'product.category_detail' => 'Category Overview' ), 'group' => array( 'product.group' => 'Group w/ 1 Line Art', 'product.group_multi' => 'Group w/ 2 Line Art' ), 'product' => array( 'product.detail' => 'Product Detail' ), 'content' => array( 'content.home' => 'Basic Content Home', 'content.about' => 'Basic Content About' ), 'legacy' => array( 'detail' => 'Product Detail' ) ); foreach($systemTemplates AS $name => $detail) { $templates = array($template => ucwords($template)); } print_r($templates);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $template in /in/1aFe5 on line 30 Deprecated: ucwords(): Passing null to parameter #1 ($string) of type string is deprecated in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Deprecated: ucwords(): Passing null to parameter #1 ($string) of type string is deprecated in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Deprecated: ucwords(): Passing null to parameter #1 ($string) of type string is deprecated in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Deprecated: ucwords(): Passing null to parameter #1 ($string) of type string is deprecated in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Deprecated: ucwords(): Passing null to parameter #1 ($string) of type string is deprecated in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Deprecated: ucwords(): Passing null to parameter #1 ($string) of type string is deprecated in /in/1aFe5 on line 30 Warning: Undefined variable $template in /in/1aFe5 on line 30 Array ( [] => )

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:
40.01 ms | 404 KiB | 8 Q