3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ( have_posts() ) : ?> <?php /* Start the Loop */ query_posts(array('post_type' => array('post', 'Questions')));?> <?php while ( have_posts() ) : the_post(); ?> <?php /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'template-parts/content', get_post_format() ); ?> <?php endwhile; ?> <?php else : ?> <?php get_template_part( 'template-parts/content', 'none' ); ?> <?php endif; ?>
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function have_posts() in /in/JfMXd:1 Stack trace: #0 {main} thrown in /in/JfMXd on line 1
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function have_posts() in /in/JfMXd on line 1
Process exited with code 255.