3v4l.org

run code in 300+ PHP versions simultaneously
<?php $show = array( 'mon' => false, 'tue' => false, 'wed' => false, 'thu' => false, 'fri' => false, 'sat' => false, 'sun' => false ); array_walk($show, function($x, $i) use ($post) { $x = true; // in your case $x = isset($post[$i]); }); var_dump($show);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $post in /in/kVUu5 on line 13 array(7) { ["mon"]=> bool(false) ["tue"]=> bool(false) ["wed"]=> bool(false) ["thu"]=> bool(false) ["fri"]=> bool(false) ["sat"]=> bool(false) ["sun"]=> bool(false) }

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