3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attractionsArray = array( "Services" => array( "Travel & Hotels ~72", "Automotive~119", "Professional Services~71", "Home Services~70", "IT Services & Computer Repair~83", "Health and Medical~69" ), "Restaurants" => array( "American / Eclectic~2", "Cafe~11", "Desserts & Bakery~111" ), "Shopping" => array( "Office Equipment~103", "Department Stores~91", "Cosmetics & Beauty Supply~90", "Musical Instruments & Teachers~102", "Food~87" ), "Entertainment" => array( "Bars/Pubs~48" ), "Travel" => array( "Hotels~129" ) ); foreach($attractionsArray as $key => $innerArray) { $attractionArray[$key] = sort($innerArray, SORT_STRING); } print_r($attractionArray);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [Services] => 1 [Restaurants] => 1 [Shopping] => 1 [Entertainment] => 1 [Travel] => 1 )

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:
42.39 ms | 401 KiB | 8 Q