3v4l.org

run code in 300+ PHP versions simultaneously
<?php $args=array( 'post_type' => 'portfolio', 'orderby' => 'title', 'order' => 'ASC', 'posts_per_page'=>-1, 'portfolio-category' => 'indie', 'ignore_sticky_posts'=>1 ); $the_query = new WP_Query($args); foreach(new WP_Query_Columns($the_query, 15) as $column_count) : ?> <ul> <?php while ($column_count--) : $the_query->the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> <?php endforeach; ?> <?php wp_reset_query(); // Restore global post data stomped by the_post(). ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "WP_Query" not found in /in/hWrua:14 Stack trace: #0 {main} thrown in /in/hWrua on line 14
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:
43.52 ms | 401 KiB | 8 Q