3v4l.org

run code in 300+ PHP versions simultaneously
<?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 == "object") ?>

preferences:
54.31 ms | 402 KiB | 5 Q