3v4l.org

run code in 300+ PHP versions simultaneously
<?php function display_post( $postdata ) { echo "<div class='post'>"; echo "<h1>" . $postdata['post_title'] . "</h1>"; echo "<p>" . $postdata['post_excerpt'] . "</p>"; echo "<div class='post-meta'>Published on " . $postdata['post_date'] . " by " . $postdata['post_author'] . "</div>"; echo "</div>"; } $posts = array( 0 => array( "post_title" => "My First Post", "post_excerpt" => "This is a short snippet of text from the first post", "post_date" => "2015 December 1", "post_author" => "Daniel Pataki" ), 1 => array( "post_title" => "Second Post", "post_excerpt" => "Short exceprt for post number 2", "post_date" => "2015 December 4", "post_author" => "Raelene Morey" ) ); foreach( $posts as $post ) { display_post( $post ); }
Output for git.master, git.master_jit, rfc.property-hooks
<div class='post'><h1>My First Post</h1><p>This is a short snippet of text from the first post</p><div class='post-meta'>Published on 2015 December 1 by Daniel Pataki</div></div><div class='post'><h1>Second Post</h1><p>Short exceprt for post number 2</p><div class='post-meta'>Published on 2015 December 4 by Raelene Morey</div></div>

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:
34.47 ms | 402 KiB | 8 Q