3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $templates = 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($templates AS $template) { //$templateSelect = array($template print_r($template); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [product.category_overview] => Family Overview No Parallax [product.category_overview_slideshow] => Family Overview W/ Slideshow ) Array ( [product.category_detail] => Category Overview ) Array ( [product.group] => Group w/ 1 Line Art [product.group_multi] => Group w/ 2 Line Art ) Array ( [product.detail] => Product Detail ) Array ( [content.home] => Basic Content Home [content.about] => Basic Content About ) Array ( [detail] => Product Detail )