3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 5.4.18 - 5.4.19
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/FVftd on line 29
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/9EKQJ on line 29
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CLASS in /in/9EKQJ on line 29
Process exited with code 255.