3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'id93294' => [ 'Name' => 'Tom Anderson 2', 'Birthday' => '03/17/1975', 'Hometown' => 'The Matrix', 'CurrentLocation' => 'The Matrix' ], 'id29349' => [ 'Name' => 'Tom Anderson 1', 'Birthday' => '03/17/1975', 'Hometown' => 'The Matrix', 'CurrentLocation' => 'The Matrix' ], 'id29348' => [ 'Name' => 'Neo', 'Birthday' => '03/17/1975', 'Hometown' => 'The Matrix', 'CurrentLocation' => 'The Real World' ], 'id29346' => [ 'Name' => 'Neo', 'Birthday' => '03/17/1975', 'Hometown' => 'The Matrix', 'CurrentLocation' => 'Zion' ], 'id29338' => [ 'Name' => 'Tank', 'Birthday' => '04/20/1973', 'Hometown' => 'Zion', 'CurrentLocation' => 'Zion' ], 'id29342' => [ 'Name' => 'Trinity', 'Birthday' => '08/09/1979', 'Hometown' => 'The Matrix', 'CurrentLocation' => 'The Real World' ] ]; uasort($array, function($a, $b) { return [strtotime($a['Birthday']), $a['Hometown'] !== $a['CurrentLocation'], $a['Name']] <=> [strtotime($b['Birthday']), $b['Hometown'] !== $b['CurrentLocation'], $b['Name']]; }); var_export($array);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'id29338' => array ( 'Name' => 'Tank', 'Birthday' => '04/20/1973', 'Hometown' => 'Zion', 'CurrentLocation' => 'Zion', ), 'id29349' => array ( 'Name' => 'Tom Anderson 1', 'Birthday' => '03/17/1975', 'Hometown' => 'The Matrix', 'CurrentLocation' => 'The Matrix', ), 'id93294' => array ( 'Name' => 'Tom Anderson 2', 'Birthday' => '03/17/1975', 'Hometown' => 'The Matrix', 'CurrentLocation' => 'The Matrix', ), 'id29348' => array ( 'Name' => 'Neo', 'Birthday' => '03/17/1975', 'Hometown' => 'The Matrix', 'CurrentLocation' => 'The Real World', ), 'id29346' => array ( 'Name' => 'Neo', 'Birthday' => '03/17/1975', 'Hometown' => 'The Matrix', 'CurrentLocation' => 'Zion', ), 'id29342' => array ( 'Name' => 'Trinity', 'Birthday' => '08/09/1979', 'Hometown' => 'The Matrix', 'CurrentLocation' => 'The Real World', ), )

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:
29.87 ms | 408 KiB | 5 Q