3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $RESTRICTED_PROPERTIES = array( "bagel" => 'Awaiting for Confirmation', "dog" => 'Asssigned', "poodle" => 'In Progress', "weiner" => 'Completed', "cuttlefish" => 'Mark As Spam', ); $properties = array("poiue","dog"); foreach ($properties as $property) { unset($RESTRICTED_PROPERTIES[$property]); } var_dump($RESTRICTED_PROPERTIES); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(4) { ["bagel"]=> string(25) "Awaiting for Confirmation" ["poodle"]=> string(11) "In Progress" ["weiner"]=> string(9) "Completed" ["cuttlefish"]=> string(12) "Mark As Spam" }