3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array( 'query' => array ( 'post_type' => 'product', 'post_status' => 'publish', 'ignore_sticky_posts' => true, 'no_found_rows' => true, 'orderby' => 'date', 'order' => 'DESC', 'posts_per_page' => 4, 'meta_query' => array ( ), 'tax_query' => array ( 0 => array ( 'taxonomy' => 'product_visibility', 'field' => 'term_taxonomy_id', 'terms' => array ( 0 => 7, ), 'operator' => 'NOT IN', ), 1 => array ( 'taxonomy' => 'product_visibility', 'terms' => 'featured', 'field' => 'name', 'operator' => 'IN', 'include_children' => false, ), ), ), 'query_vars' => array ( 'post_type' => 'product', 'post_status' => 'publish', 'ignore_sticky_posts' => true, 'no_found_rows' => true, 'orderby' => 'date', 'order' => 'DESC', 'posts_per_page' => 4, 'meta_query' => array ( ), 'tax_query' => array ( 0 => array ( 'taxonomy' => 'product_visibility', 'field' => 'term_taxonomy_id', 'terms' => array ( 0 => 7, ), 'operator' => 'NOT IN', ), 1 => array ( 'taxonomy' => 'product_visibility', 'terms' => 'featured', 'field' => 'name', 'operator' => 'IN', 'include_children' => false, ), ), 'error' => '', 'm' => '', 'p' => 0, 'post_parent' => '', 'subpost' => '', 'subpost_id' => '', 'attachment' => '', 'attachment_id' => 0, 'name' => '', 'static' => '', 'pagename' => '', 'page_id' => 0, 'second' => '', 'minute' => '', 'hour' => '', 'day' => 0, 'monthnum' => 0, 'year' => 0, 'w' => 0, 'category_name' => '', 'tag' => '', 'cat' => '', 'tag_id' => '', 'author' => '', 'author_name' => '', 'feed' => '', 'tb' => '', 'paged' => 0, 'meta_key' => '', 'meta_value' => '', 'preview' => '', 's' => '', 'sentence' => '', 'title' => '', 'fields' => '', 'menu_order' => '', 'embed' => '', 'category__in' => array ( ), 'category__not_in' => array ( ), 'category__and' => array ( ), 'post__in' => array ( ), 'post__not_in' => array ( ), 'post_name__in' => array ( ), 'tag__in' => array ( ), 'tag__not_in' => array ( ), 'tag__and' => array ( ), 'tag_slug__in' => array ( ), 'tag_slug__and' => array ( ), 'post_parent__in' => array ( ), 'post_parent__not_in' => array ( ), 'author__in' => array ( ), 'author__not_in' => array ( ), 'suppress_filters' => false, 'cache_results' => false, 'update_post_term_cache' => true, 'lazy_load_term_meta' => true, 'update_post_meta_cache' => true, 'nopaging' => false, 'comments_per_page' => '50', 'taxonomy' => 'product_visibility', 'term_id' => 'featured', ), 'tax_query' => array( 'queries' => array ( 0 => array ( 'taxonomy' => 'product_visibility', 'terms' => array ( 0 => 7, ), 'field' => 'term_taxonomy_id', 'operator' => 'NOT IN', 'include_children' => true, ), 1 => array ( 'taxonomy' => 'product_visibility', 'terms' => array ( 0 => 'featured', ), 'field' => 'name', 'operator' => 'IN', 'include_children' => false, ), ), 'relation' => 'AND', 'table_aliases' => array ( 0 => 'wp_term_relationships', ), 'queried_terms' => array ( 'product_visibility' => array ( 'terms' => array ( 0 => 'featured', ), 'field' => 'name', ), ), 'primary_table' => 'wp_posts', 'primary_id_column' => 'ID', ), 'meta_query' => array( 'queries' => array ( ), 'relation' => NULL, 'meta_table' => NULL, 'meta_id_column' => NULL, 'primary_table' => NULL, 'primary_id_column' => NULL, 'table_aliases' => array ( ), 'clauses' => array ( ), 'has_or_relation' => false, ), 'date_query' => false, 'request' => 'SELECT wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND ( wp_posts.ID NOT IN ( SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id IN (7) ) AND wp_term_relationships.term_taxonomy_id IN (8) ) AND wp_posts.post_type = \'product\' AND ((wp_posts.post_status = \'publish\')) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 4', 'posts' => array ( ), 'post_count' => 0, 'current_post' => -1, 'in_the_loop' => false, 'comment_count' => 0, 'current_comment' => -1, 'found_posts' => 0, 'max_num_pages' => 0, 'max_num_comment_pages' => 0, 'is_single' => false, 'is_preview' => false, 'is_page' => false, 'is_archive' => true, 'is_date' => false, 'is_year' => false, 'is_month' => false, 'is_day' => false, 'is_time' => false, 'is_author' => false, 'is_category' => false, 'is_tag' => false, 'is_tax' => true, 'is_search' => false, 'is_feed' => false, 'is_comment_feed' => false, 'is_trackback' => false, 'is_home' => false, 'is_404' => false, 'is_embed' => false, 'is_paged' => false, 'is_admin' => false, 'is_attachment' => false, 'is_singular' => false, 'is_robots' => false, 'is_posts_page' => false, 'is_post_type_archive' => true, 'query_vars_hash' => '28505f3348759547b39188cac4c16f6e', 'query_vars_changed' => false, 'thumbnails_cached' => false, 'stopwords' => NULL, 'compat_fields' => array ( 0 => 'query_vars_hash', 1 => 'query_vars_changed', ), 'compat_methods' => array ( 0 => 'init_query_flags', 1 => 'parse_tax_query', ), ); var_dump(serialize($foo));

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)
8.3.60.0100.01416.38
8.3.50.0090.00916.51
8.3.40.0180.00018.63
8.3.30.0110.00418.69
8.3.20.0060.00320.26
8.3.10.0080.00023.52
8.3.00.0050.00323.69
8.2.180.0120.00616.63
8.2.170.0090.00922.96
8.2.160.0030.01020.52
8.2.150.0150.00024.18
8.2.140.0090.00024.66
8.2.130.0000.00820.35
8.2.120.0040.00426.35
8.2.110.0030.00622.25
8.2.100.0040.00817.66
8.2.90.0050.00517.75
8.2.80.0030.00518.61
8.2.70.0080.00017.50
8.2.60.0080.00017.63
8.2.50.0040.00417.38
8.2.40.0040.00419.22
8.2.30.0070.00019.26
8.2.20.0070.00018.10
8.2.10.0000.00717.94
8.2.00.0000.00818.01
8.1.280.0100.00725.92
8.1.270.0040.00422.05
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00620.60
8.1.230.0150.00017.82
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00617.41
8.1.180.0060.00318.10
8.1.170.0060.00317.62
8.1.160.0000.00718.89
8.1.150.0000.00720.20
8.1.140.0040.00417.33
8.1.130.0070.00018.86
8.1.120.0040.00417.33
8.1.110.0000.00817.42
8.1.100.0000.00917.48
8.1.90.0000.00717.41
8.1.80.0000.00817.41
8.1.70.0000.00717.45
8.1.60.0000.00817.47
8.1.50.0040.00417.54
8.1.40.0040.00417.46
8.1.30.0040.00417.60
8.1.20.0040.00417.65
8.1.10.0040.00417.56
8.1.00.0040.00417.38
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0040.00418.40
8.0.270.0030.00317.18
8.0.260.0070.00316.79
8.0.250.0000.00716.86
8.0.240.0070.00016.91
8.0.230.0030.00316.94
8.0.220.0040.00416.75
8.0.210.0030.00316.86
8.0.200.0030.00316.91
8.0.190.0070.00316.79
8.0.180.0000.00716.89
8.0.170.0000.00716.81
8.0.160.0000.00716.75
8.0.150.0030.00516.88
8.0.140.0050.00316.71
8.0.130.0050.00313.21
8.0.120.0080.00016.83
8.0.110.0050.00216.75
8.0.100.0000.00716.83
8.0.90.0070.00016.88
8.0.80.0060.00916.74
8.0.70.0050.00316.68
8.0.60.0070.00016.73
8.0.50.0000.00716.77
8.0.30.0120.00417.11
8.0.20.0140.00817.40
8.0.10.0070.00016.81
8.0.00.0160.00316.75
7.4.330.0050.00016.67
7.4.320.0030.00316.49
7.4.300.0070.00016.39
7.4.290.0000.00716.55
7.4.280.0050.00316.54
7.4.270.0030.00316.38
7.4.260.0020.00516.57
7.4.250.0080.00016.34
7.4.240.0000.00716.58
7.4.230.0040.00416.27
7.4.220.0070.01116.57
7.4.210.0070.00816.59
7.4.200.0000.00916.48
7.4.160.0050.01216.66
7.4.150.0170.00717.40
7.4.140.0110.00717.86
7.4.130.0070.01016.38
7.4.120.0110.01116.52
7.4.110.0120.00916.47
7.4.100.0160.00716.62
7.4.90.0140.00416.55
7.4.80.0110.01119.39
7.4.70.0090.00916.41
7.4.60.0060.00916.50
7.4.50.0060.00816.57
7.4.40.0080.00816.32
7.4.30.0110.00516.56
7.4.00.0070.01014.84
7.3.330.0050.00013.06
7.3.320.0020.00212.96
7.3.310.0000.00716.09
7.3.300.0030.00416.12
7.3.290.0030.00316.02
7.3.280.0080.01016.19
7.3.270.0210.00017.40
7.3.260.0040.01416.27
7.3.250.0080.01016.24
7.3.240.0070.00916.20
7.3.230.0080.01516.28
7.3.210.0060.01216.40
7.3.200.0140.00316.29
7.3.190.0100.01016.48
7.3.180.0060.01016.11
7.3.170.0130.01016.11
7.3.160.0100.00616.18
7.3.120.0090.01014.60
7.3.110.0070.00914.94
7.3.100.0070.01014.66
7.3.90.0030.01214.67
7.3.80.0080.00514.75
7.3.70.0050.00914.65
7.3.60.0110.00514.79
7.3.50.0080.00614.69
7.3.40.0040.00914.63
7.3.30.0080.00214.78
7.3.20.0070.00516.56
7.3.10.0110.00516.71
7.3.00.0020.01016.31
7.2.330.0090.00916.58
7.2.320.0150.00916.34
7.2.310.0140.00616.64
7.2.300.0160.00316.20
7.2.290.0070.01016.25
7.2.250.0060.00814.91
7.2.240.0100.01014.74
7.2.230.0060.00614.76
7.2.220.0070.00614.83
7.2.210.0070.01114.96
7.2.200.0030.01414.82
7.2.190.0050.00414.74
7.2.180.0050.00814.96
7.2.170.0090.00614.85
7.2.110.0090.00416.35
7.2.60.0060.00616.48
7.1.330.0060.00815.71
7.1.320.0050.00715.78
7.1.310.0040.00915.55
7.1.300.0050.00715.67
7.1.290.0050.00715.67
7.1.280.0060.00915.76
7.1.270.0000.01715.75
7.1.260.0060.00615.54
7.1.200.0090.00515.77
7.1.110.0110.01416.02
7.1.100.0150.01315.88
7.1.90.0120.01416.36
7.1.80.0100.01015.69
7.1.70.3300.00315.38
7.1.60.0250.01233.15
7.1.50.5260.01032.84
7.1.40.0360.01332.49
7.1.30.0270.01032.68
7.1.20.0240.01032.59
7.1.10.0210.00314.78
7.1.00.0120.00814.96
7.0.250.0170.01015.55
7.0.240.6440.01215.91
7.0.231.0080.01315.81
7.0.220.0100.01015.55
7.0.210.0100.01014.67
7.0.200.0090.00914.60
7.0.190.0130.00614.76
7.0.180.1550.00314.59
7.0.171.1470.01014.28
7.0.160.0110.00614.27
7.0.150.0070.01014.41
7.0.140.1920.01014.45
7.0.130.0400.00314.39
7.0.120.0130.00614.70
7.0.110.0030.01614.41
7.0.100.0090.00914.64
7.0.90.0130.01014.50
7.0.80.2280.01314.25
7.0.70.0230.00414.47
7.0.60.0170.01114.37
7.0.50.0120.01614.56
7.0.40.0230.01214.68
7.0.30.0140.01014.60
7.0.20.0120.01214.71
7.0.10.0360.02014.50
7.0.00.0230.00014.60

preferences:
60 ms | 400 KiB | 5 Q