3v4l.org

run code in 300+ PHP versions simultaneously
<?php $places = array((object)array('PlaceId' => 837, 'Name' => 'United Arab Emirates', 'Type' => 'Country'), (object)array('PlaceId' => 838, 'Name' => 'Afghanistan', 'Type' => 'Country'), (object)array('PlaceId' => 839, 'Name' => 'Antigua and Barbuda', 'Type' => 'Country') ); foreach ($places as $place) { if ($place->PlaceId == 837) break; } if ($place->PlaceId == 837) print_r($place); else echo "Not found!";

preferences:
32.72 ms | 404 KiB | 5 Q