3v4l.org

run code in 300+ PHP versions simultaneously
<?php $movies = array ( "horror"=>array ( "Paranormal Activity"=> array ( "Katie Featherston", "Kathryn Newton" ), "The Ring"=> array ( "Naomi Watts", "Brian Cox" ), "Sleepy Hollow"=> array( "Johhny Depp", "Christina Ricci" ) ), "action" => array ( "The Tourist"=> array ( "Johnny Depp", "Angelina Jolie" ), "Public Enemies"=> array ( "Johnny Depp", "Christian Bale" ), "The Dark Knight Rises"=> array ( "Christian Bale", "Tom Hardy" ), "Salt"=> array ( "Angelina Jolie" ) ), "thriller"=> array ( "Inception"=> array( "Leornardio Dicaprio", "Tom Hardy" ), "Changeling" => array( "Angelina Jolie" ), "The Game"=> array( "Michael Douglas", "Sean Penn" ) ) ); $keys = array_keys($movies); foreach ($keys as $genre) { echo $genre,"\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
horror action thriller

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:
71.42 ms | 401 KiB | 8 Q