3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'id' => 1, 'expiry_date' => [ 'foo' => 'bar', 'count' => '(22)', ] ], [ 'id' => 2, 'expiry_date' => [ 'foo' => 'bar', 'count' => '(43)', ] ], [ 'id' => 3, 'expiry_date' => [ 'foo' => 'bar', 'count' => '(5)', ] ], [ 'id' => 4, 'expiry_date' => [ 'foo' => 'bar', 'count' => '(111)', ] ] ]; foreach ($array as $row) { $counts[] = (int) trim($row['expiry_date']['count'], '()'); } array_multisort($counts, $array); var_export($array);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'id' => 3, 'expiry_date' => array ( 'foo' => 'bar', 'count' => '(5)', ), ), 1 => array ( 'id' => 1, 'expiry_date' => array ( 'foo' => 'bar', 'count' => '(22)', ), ), 2 => array ( 'id' => 2, 'expiry_date' => array ( 'foo' => 'bar', 'count' => '(43)', ), ), 3 => array ( 'id' => 4, 'expiry_date' => array ( 'foo' => 'bar', 'count' => '(111)', ), ), )

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:
26.67 ms | 407 KiB | 5 Q