3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myarray = array("Google" => array("Name" => "Google", "URL" => "www.google.com", "Usage" => "Googling"), "Yahoo" => array("Name" => "Yahoo", "URL" => "www.yahoo.com", "Usage" => "Yahooing?"), "Ask" => array("Name" => "Ask", "URL" => "www.ask.com", "Usage" => "Asking Jeeves")); print_r($myarray); shuffle($myarray); print_r($myarray);
based on TO1jZ
Output for 7.2.7, 7.2.13, 7.3.4
Array ( [Google] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) [Yahoo] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) [Ask] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) ) Array ( [0] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) [1] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) [2] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) )
Output for 7.1.25 - 7.1.26, 7.1.28, 7.2.1 - 7.2.2, 7.2.4, 7.2.8, 7.2.11, 7.3.1, 7.3.3
Array ( [Google] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) [Yahoo] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) [Ask] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) ) Array ( [0] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) [1] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) [2] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) )
Output for 7.2.12, 7.3.2
Array ( [Google] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) [Yahoo] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) [Ask] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) ) Array ( [0] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) [1] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) [2] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) )
Output for 7.2.0, 7.2.3, 7.2.9 - 7.2.10, 7.2.16, 7.3.0
Array ( [Google] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) [Yahoo] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) [Ask] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) ) Array ( [0] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) [1] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) [2] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) )
Output for 7.2.6, 7.2.17
Array ( [Google] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) [Yahoo] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) [Ask] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) ) Array ( [0] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) [1] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) [2] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) )
Output for 7.1.27, 7.2.5, 7.2.14 - 7.2.15
Array ( [Google] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) [Yahoo] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) [Ask] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) ) Array ( [0] => Array ( [Name] => Yahoo [URL] => www.yahoo.com [Usage] => Yahooing? ) [1] => Array ( [Name] => Google [URL] => www.google.com [Usage] => Googling ) [2] => Array ( [Name] => Ask [URL] => www.ask.com [Usage] => Asking Jeeves ) )