3v4l.org

run code in 300+ PHP versions simultaneously
<?php $social_array = array( "facebook" => array( 'class' => "facebook", 'url' => 'https://www.facebook.com/', 'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')' ), "twitter" => array( 'class' => "facebook", 'url' => 'https://www.facebook.com/', 'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')' ), "linked-in" => array( 'class' => "facebook", 'url' => 'https://www.facebook.com/', 'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')' ), "google-plus" => array( 'class' => "facebook", 'url' => 'https://www.facebook.com/', 'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')' ) ); $html = '<ul>'; foreach ($social_array as $name => $class_array){ $html .= '<li><a href="' . $class_array['url'] . $class_array['handle'] .'" class="' . $class_array['class']. '">'. $name. '</a></li>'; } $html .= '</ul>'; print $html; ?>
Output for git.master, git.master_jit, rfc.property-hooks
<ul><li><a href="https://www.facebook.com/Mage::getStoreConfig('social_code/social_group/twitter_field')" class="facebook">facebook</a></li><li><a href="https://www.facebook.com/Mage::getStoreConfig('social_code/social_group/twitter_field')" class="facebook">twitter</a></li><li><a href="https://www.facebook.com/Mage::getStoreConfig('social_code/social_group/twitter_field')" class="facebook">linked-in</a></li><li><a href="https://www.facebook.com/Mage::getStoreConfig('social_code/social_group/twitter_field')" class="facebook">google-plus</a></li></ul>

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