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 => $group_array){ foreach ($group_array as $className => $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
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/P0S0c:29 Stack trace: #0 {main} thrown in /in/P0S0c on line 29
Process exited with code 255.

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.32 ms | 401 KiB | 8 Q