3v4l.org

run code in 300+ PHP versions simultaneously
<?php } function forside_stylish_top_authors_widget_display($args=array(), $params=array()) { // Options Loading $widgettitle = get_option('forside_stylish_top_author_widget_title'); $widgettitleicon = get_option('forside_stylish_top_author_widget_title_icon'); $widgettitleiconwidth = get_option('forside_stylish_top_author_widget_title_icon_width'); $number = get_option('forside_stylish_top_author_widget_number'); $authorfilter = get_option('forside_stylish_top_author_widget_author_filter'); // Widget Output echo stripslashes($args['before_widget']); echo '<div id="stylish_top_author">'; if ($widgettitle != '') { echo stripslashes($args['before_title']);?> <img style="margin-right:5px" width="<?php echo stripslashes($widgettitleiconwidth);?>" src="<?php echo stripslashes($widgettitleicon);?>"/><?php echo stripslashes($widgettitle); echo stripslashes($args['after_title']); } else { echo ""; } ?> <ol> <?php $userArray = array(); if (trim($authorfilter) == '') $userArray = get_users('order=DESC&orderby=post_count&number='.$number.''); else { $userNames = explode( ',', stripslashes($authorfilter) ); $userIDs = array(); foreach ($userNames as $userName) { if ( trim ( $userName ) != '' && count( $userArray ) < $number ) { $userObjects = get_users( array ( 'search' => trim ( $userName ) ) ); $userObject = $userObjects[0]; if ( $userObject != null ) $userArray[] = $userObject; } } #$userArray = $userObjects = get_users( array( 'include' => $userIDs ) ); } foreach ( $userArray as $user ) : ?> <li><a href="<?php echo bloginfo( url )."/author/".$user->user_login; ?>"> <figure> <?php echo get_avatar($user->ID, 100); ?> <figcaption> <h5> <?php echo $user->display_name; ?> </h5> <p style="color:aquamarine">Published <?php echo count_user_posts($user->ID); ?> Posts</p> <p><?php echo $user->description; ?></p> </figcaption> </figure></a> </li> <?php endforeach; ?>
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.32
Parse error: syntax error, unexpected '}' in /in/dajD3 on line 3
Process exited with code 255.

preferences:
213.79 ms | 1395 KiB | 70 Q