3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "movies": [ "Jurassic Park", "James Bond", "once upon a time in the west", "Waterworld" ], "recipes": [ "Lasagne", "Pizza", "Salad" ] }'; $array = json_decode($json); print_r($array); foreach($array->movies as $movie) { echo '<li>'; echo $movie; echo '<li>'; }
Output for git.master, git.master_jit, rfc.property-hooks
stdClass Object ( [movies] => Array ( [0] => Jurassic Park [1] => James Bond [2] => once upon a time in the west [3] => Waterworld ) [recipes] => Array ( [0] => Lasagne [1] => Pizza [2] => Salad ) ) <li>Jurassic Park<li><li>James Bond<li><li>once upon a time in the west<li><li>Waterworld<li>

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:
124.72 ms | 406 KiB | 5 Q