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; ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.320.0070.03512.50
5.4.310.0080.03612.49
5.4.300.0100.03812.50
5.4.290.0090.04312.49
5.4.280.0060.04412.39
5.4.270.0090.04112.39
5.4.260.0070.04412.39
5.4.250.0080.04212.39
5.4.240.0090.04212.39
5.4.230.0070.04912.38
5.4.220.0060.04712.38
5.4.210.0090.04112.38
5.4.200.0060.04712.38
5.4.190.0090.04312.38
5.4.180.0060.04312.38
5.4.170.0090.04412.38
5.4.160.0110.04212.38
5.4.150.0100.03812.38
5.4.140.0060.04612.07
5.4.130.0080.04412.05
5.4.120.0080.04812.02
5.4.110.0060.04112.01
5.4.100.0060.04012.01
5.4.90.0070.04412.01
5.4.80.0110.04512.01
5.4.70.0100.03712.01
5.4.60.0070.04212.01
5.4.50.0090.04412.01
5.4.40.0080.03812.00
5.4.30.0090.03911.99
5.4.20.0090.03711.99
5.4.10.0100.04211.99
5.4.00.0080.03611.48
5.3.290.0060.04812.80
5.3.280.0070.04312.71
5.3.270.0090.04412.73
5.3.260.0060.04212.72
5.3.250.0080.03912.72
5.3.240.0090.04212.72
5.3.230.0120.03912.71
5.3.220.0070.04412.68
5.3.210.0100.04212.68
5.3.200.0080.03812.68
5.3.190.0080.04312.68
5.3.180.0070.04512.67
5.3.170.0080.04212.67
5.3.160.0090.04712.67
5.3.150.0120.04612.67
5.3.140.0090.04712.66
5.3.130.0080.04612.66
5.3.120.0090.04712.65
5.3.110.0100.04912.66
5.3.100.0070.04912.12
5.3.90.0070.04912.08
5.3.80.0080.04012.08
5.3.70.0070.04512.08
5.3.60.0080.04012.07
5.3.50.0070.04012.00
5.3.40.0070.04112.00
5.3.30.0100.03811.95
5.3.20.0060.04111.73
5.3.10.0090.03711.70
5.3.00.0060.04311.68

preferences:
135.06 ms | 1394 KiB | 7 Q