3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = [ 'person_1@gmail.com' => [ '2017-01-05' =>[ 'this is line one', 'this is line two', ], '2016-05-05' => [ 'this is another line', 'and this is a fourth line' ], '2017-07-10' => [ 'more lines', 'yet another line' ], ], 'person_2@gmail.com' => [ '2015-01-01' => ['line for person_2'], ] ]; foreach($myArray as $key=>$value){ krsort($myArray[$key]); } print_r($myArray);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [person_1@gmail.com] => Array ( [2017-07-10] => Array ( [0] => more lines [1] => yet another line ) [2017-01-05] => Array ( [0] => this is line one [1] => this is line two ) [2016-05-05] => Array ( [0] => this is another line [1] => and this is a fourth line ) ) [person_2@gmail.com] => Array ( [2015-01-01] => Array ( [0] => line for person_2 ) ) )

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:
55.27 ms | 402 KiB | 8 Q