3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array ( 'markers' => array ( 0 => array ( 'booking_url' => 'false', 'postal_code' => '', 'booking_id' => '', 'is_saved' => 'false', 'has_booking_system' => '1', 'owner' => 'segondignac', 'price_from' => '58', 'title' => 'La Halte de Segondigna..', 'city' => 'Saint Germain d\'Esteuil', 'address' => '5 Route de Saint Gaux', 'resa_booking_form' => 'true', 'has_booking_system_no_payment' => '0', 'image_small' => 'https://example.com/links/uploads/small/8/220028-nK1RD16Qsw453pMi7HBA.jpg', 'latitude' => '45.26429390', 'longitude' => '-0.91037940', 'linkid' => '10960', ), 1 => array ( 'is_saved' => 'false', 'booking_url' => 'false', 'booking_id' => '', 'postal_code' => '', 'has_booking_system' => '1', 'price_from' => '88', 'owner' => 'bluelodge', 'address' => '70 rue de Ségur', 'city' => 'Bordeaux', 'title' => 'C\'est une maison bleue..', 'latitude' => '44.8247082823002360', 'image_small' => 'https://example.com/links/uploads/small/6/505196-ZDXWth5QXgjAbo4I1rq5w.jpg', 'has_booking_system_no_payment' => '0', 'resa_booking_form' => 'true', 'linkid' => '13763', 'longitude' => '-0.58459281921386720', ), 2 => array ( 'has_booking_system' => '1', 'is_saved' => 'false', 'booking_url' => 'false', 'booking_id' => '', 'postal_code' => '', 'price_from' => '60', 'owner' => 'patrick.garbe.52', 'latitude' => '44.6015560', 'image_small' => 'https://example.com/links/uploads/small/6/148176-6t2uR0MUBZMhkHR9TbL0g.jpg', 'has_booking_system_no_payment' => '0', 'resa_booking_form' => 'true', 'address' => '64 Sotogrande', 'city' => 'Gujan-Mestras', 'title' => 'La Cabane du Golf', 'linkid' => '126030', 'longitude' => '-1.08606009999994060', ), 3 => array ( 'has_booking_system' => '1', 'postal_code' => '', 'booking_url' => 'false', 'booking_id' => '', 'is_saved' => 'false', 'price_from' => '300', 'owner' => 'christine.timellen.14', 'latitude' => '44.7300940', 'resa_booking_form' => 'true', 'image_small' => 'https://example.com/links/uploads/small/6/532406-V2IZ44jjuWxVc9VtAk48pg.jpg', 'has_booking_system_no_payment' => '0', 'title' => 'Timellen', 'city' => 'Lanton', 'address' => 'Impasse des Makilas', 'linkid' => '93514', 'longitude' => '-1.04289489999996470', ), 4 => array ( 'longitude' => '-1.17691170000000510', 'linkid' => '252398', 'address' => '1, Allée Des Dauphins', 'title' => 'La Villa Stella', 'city' => 'Pyla sur Mer', 'has_booking_system_no_payment' => '0', 'image_small' => 'https://example.com/links/uploads/small/1/571071-wpKLQ2tTOWmUpmGVngNA.jpg', 'resa_booking_form' => 'true', 'latitude' => '44.6437140', 'owner' => 'PhBoda', 'price_from' => '70', 'is_saved' => 'false', 'postal_code' => '', 'booking_url' => 'false', 'booking_id' => '', 'has_booking_system' => '1', ), 5 => array ( 'booking_url' => 'false', 'postal_code' => '', 'booking_id' => '', 'is_saved' => 'false', 'title' => 'Chambres D\'hôtes \' Jef..', 'city' => 'Carcans - Maubuisson', 'address' => '18, Rue des Genêts D\'or', 'latitude' => '45.068182578090370', 'has_booking_system' => '0', 'image_small' => 'https://example.com/links/uploads/small/5/506995-cORqtnEHtHCzUfupkiUuQ.jpg', 'has_booking_system_no_payment' => '0', 'price_from' => '85', 'linkid' => '59021', 'longitude' => '-1.14553928375244140', 'owner' => 'jefflespins', ), 6 => array ( 'price_from' => '76', 'linkid' => '16955', 'longitude' => '-0.593261718750', 'owner' => 'maisonrose', 'latitude' => '44.331707186809210', 'has_booking_system_no_payment' => '0', 'image_small' => 'https://example.com/links/uploads/small/6/195806-feQDhiVn9fHuWBUTK1Ng.jpg', 'has_booking_system' => '0', 'is_saved' => 'false', 'booking_id' => '', 'booking_url' => 'false', 'postal_code' => '', 'address' => '26, Le Bourg', 'city' => 'Origne', 'title' => 'La Maison Rose', ), 7 => array ( 'is_saved' => 'false', 'booking_id' => '', 'booking_url' => 'false', 'postal_code' => '', 'address' => '54 Route De Rabey', 'city' => 'Isle Saint Georges', 'title' => 'Château de Montigny-Ra..', 'latitude' => '44.721281586556690', 'image_small' => 'https://example.com/links/uploads/small/2/494712-pxpMui7G2a9dzNp3YEe1Q.jpg', 'has_booking_system_no_payment' => '0', 'has_booking_system' => '0', 'linkid' => '53051', 'price_from' => '110', 'owner' => 'chatocam', 'longitude' => '-0.453948412793351960', ), 8 => array ( 'is_saved' => 'false', 'booking_url' => 'false', 'postal_code' => '', 'booking_id' => '', 'address' => '19 Rue du Cloître', 'title' => 'Bordeaux : 2 Chambres ..', 'city' => 'Bordeaux', 'latitude' => '44.833484299999990', 'image_small' => 'https://example.com/links/uploads/small/3/185083-PEdQAFjp82WPtCQ0NChSKQ.jpg', 'has_booking_system_no_payment' => '0', 'has_booking_system' => '0', 'price_from' => '55', 'linkid' => '30696', 'owner' => 'annebruge', 'longitude' => '-0.56840629999999240', ), 9 => array ( 'price_from' => '65', 'linkid' => '17524', 'owner' => 'DENIAS', 'longitude' => '-0.58094501495361330', 'is_saved' => 'false', 'booking_url' => 'false', 'postal_code' => '', 'booking_id' => '', 'address' => 'Les Denias', 'title' => 'Les Denias', 'city' => 'Saint Paul', 'latitude' => '45.144727399384470', 'has_booking_system_no_payment' => '1', 'image_small' => 'https://example.com/links/uploads/small/0/193100-05G8EWlwjUabhJaKH0bLmg.jpg', 'has_booking_system' => '0', ), ), ); $match = ['longitude' => "", 'latitude' => ""]; Foreach($arr['markers'] as $sub){ $new[] = array_intersect_key($sub, $match); } Var_dump($new);
Output for git.master_jit, git.master, rfc.property-hooks
array(10) { [0]=> array(2) { ["latitude"]=> string(11) "45.26429390" ["longitude"]=> string(11) "-0.91037940" } [1]=> array(2) { ["latitude"]=> string(19) "44.8247082823002360" ["longitude"]=> string(20) "-0.58459281921386720" } [2]=> array(2) { ["latitude"]=> string(10) "44.6015560" ["longitude"]=> string(20) "-1.08606009999994060" } [3]=> array(2) { ["latitude"]=> string(10) "44.7300940" ["longitude"]=> string(20) "-1.04289489999996470" } [4]=> array(2) { ["longitude"]=> string(20) "-1.17691170000000510" ["latitude"]=> string(10) "44.6437140" } [5]=> array(2) { ["latitude"]=> string(18) "45.068182578090370" ["longitude"]=> string(20) "-1.14553928375244140" } [6]=> array(2) { ["longitude"]=> string(15) "-0.593261718750" ["latitude"]=> string(18) "44.331707186809210" } [7]=> array(2) { ["latitude"]=> string(18) "44.721281586556690" ["longitude"]=> string(21) "-0.453948412793351960" } [8]=> array(2) { ["latitude"]=> string(18) "44.833484299999990" ["longitude"]=> string(20) "-0.56840629999999240" } [9]=> array(2) { ["longitude"]=> string(20) "-0.58094501495361330" ["latitude"]=> string(18) "45.144727399384470" } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.18 ms | 2416 KiB | 4 Q