3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ['title' => 'The Title', 'type' => 'Movie', 'hour' => '', 'dayoftheweek' => 5, 'dayofthemonth' => '']; $whitelist = ['title' => '', 'type' => '']; $filtered = array_intersect_key($data, $whitelist); // var_export($filtered); // uncomment if you want to see what remains foreach($filtered as $key => $value) { echo "<div class=\"col-md-4\">\n"; echo "\t<div class=\"name-value\" id=\"$key\">$value</div>\n"; echo "</div>\n"; }
Output for git.master_jit, git.master, rfc.property-hooks
<div class="col-md-4"> <div class="name-value" id="title">The Title</div> </div> <div class="col-md-4"> <div class="name-value" id="type">Movie</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:
62.49 ms | 401 KiB | 8 Q