3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array ( "rooms"=>array ("id"=>1,"room_name"=>"room_1"),"id"=>2,"room_name"=>"name2","id"=>3,"room_name"=>"name 3" ); print_r($data);
based on 6uh4s
Output for 4.3.0 - 7.1.0
Array ( [rooms] => Array ( [id] => 1 [room_name] => room_1 ) [id] => 3 [room_name] => name 3 )