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("bagel","dog"); foreach ($properties as $property) { unset($RESTRICTED_PROPERTIES[$property]); } var_dump($RESTRICTED_PROPERTIES); $tableName = "object"; echo($tableName == "bagel") ?>
Output for 4.3.0 - 7.1.0
array(3) { ["poodle"]=> string(11) "In Progress" ["weiner"]=> string(9) "Completed" ["cuttlefish"]=> string(12) "Mark As Spam" }