3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 'AddRooms' => '', 'AvailUtil' => 'City Water,Municipal / Public', 'CommonFacilities' => '', 'CommunityAmenities' => '', 'Construct' => 'Poured In Place Foundation,Pre-stressed Concrete,Steel & Concrete', 'Garage' => '1 Car Garage', 'Heating' => 'Radiant', 'Laundry' => '', 'Location' => '', 'ParkingDescription' => '1 Car Garage', 'PrkType' => '1 Car Garage', 'PropertySubType' => 'Residential', 'ResidentFeatures' => '', 'SFSource' => 'County/Gov\'t', 'Appliances' => 'Dishwasher,ElectricRange,Disposal,Microwave,Refrigerator,SomeElectricAppliances,Dryer,Washer', 'Area' => 'Wildernest/Silverthorne', 'AssocFee' => 580.0, 'AssocFeeIncl' => 'CommonAreas,CableTV,Gas,HVAC,Insurance,Sewer,SnowRemoval,Trash,Water', 'AssocFreq' => 'Monthly', 'BathsFull' => 2, 'BathsTotal' => 2, 'BedsTotal' => 2, 'City' => 'SILVERTHORNE', 'CloseDate' => '2019-05-16', 'ClosePrice' => 520000.0, 'ComplexSubdiv' => 'RETREAT ON THE BLUE CONDO', 'CountyOrParish' => 'Summit', 'CurrentTaxAmount' => 1315.0, 'CurrentTaxYear' => 2017, 'DrivingDirections' => 'In Silverthorne, North on Blue River Parkway, go right into Retreat on the Blue Sub, across from Subaru Dealer, and follow back to north end unit, building D. Condo is on top level.', 'EconomicArea' => 'Silverthorne/Dillon', 'FloorCvr' => 'Carpet,Tile', 'Furnish' => 'Partially', 'Latitude' => 39.63991, 'LegalDesc' => 'UNIT D2 RETREAT ON THE BL', 'ListAgentDirectWorkPhone' => '(970) 389-2996', 'ListAgentEmail' => 'jackie@buysummitcounty.com', 'ListAgentFullName' => 'Jackie McPheeters', 'ListAgentMLSID' => '0199009', 'ListingContractDate' => '2019-02-25', 'ListOfficeMLSID' => '1606', 'ListOfficeName' => 'Colorado Homes Real Estate Co.', 'ListOfficePhone' => '(970) 389-2996', 'ListPrice' => 555000.0, 'LivAreaSF' => 1155.0, 'Longitude' => -106.075366, 'Matrix_Unique_ID' => '6099266', 'MatrixModifiedDT' => '2020-01-04T00:57:15.177-00:00', 'MLSNumber' => 'S1012315', 'NumLevelsinUnit' => 'One', 'OriginalEntryTimestamp' => '2019-02-25T18:40:13.437-00:00', 'ParcelNumber' => '6511099', 'PendingDate' => '2019-03-22T00:00:00.000-00:00', 'PetsAllowed' => 'OwnerOnly,PetRestrictions', 'Possession' => 'DeliveryOfDeed', 'PostalCode' => '80498', 'PropertyType' => 'Condominium', 'PublicRemarks' => 'Rare 2 bed, 2 bath, Top Floor end unit on the Blue River! This home is a wonderful place to call home in the mountains. It\'s in a quiet, serene setting, overlooking the Blue River. Move in ready for Buyer\'s convenience. Well kept with nice furniture and great for an investment property. 1 car garage. Short-term renting allowed.', 'Roof' => 'Asphalt', 'Sewer' => 'Connected', 'StateOrProvince' => 'CO', 'Status' => 'Closed', 'StreetName' => 'Blue River', 'StreetNumber' => '848', 'UnitEntryLev' => 2, 'UnitNumber' => 'D2', 'View' => 'Mountains,River,CreekStream', 'WtrSource' => 'Public', 'YearBuilt' => 2002, 'ZoningCode' => 'Planned Unit Development', 'Zztop' => '0', 'Zzbottom' => 0 ); function func($var){ return $var !== ''; } $filtered = array_filter($array, 'func'); var_dump($filtered);

preferences:
31.96 ms | 402 KiB | 5 Q