3v4l.org

run code in 300+ PHP versions simultaneously
<?php $unsorted = array( 'desert' => array( 'time' => '1339902235', 'name' => 'desert.jpg' ), 'sea' => array( 'time' => '1339900801', 'name' => 'sea.jpg' ), 'mountain' => array( 'time' => '1339902285', 'name' => 'mountain.jpg' ), ); uasort( $unsorted, fn($a, $b) => $a['time'] <=> $b['time'] ); var_export($unsorted);
Output for git.master_jit, git.master, rfc.property-hooks
array ( 'sea' => array ( 'time' => '1339900801', 'name' => 'sea.jpg', ), 'desert' => array ( 'time' => '1339902235', 'name' => 'desert.jpg', ), 'mountain' => array ( 'time' => '1339902285', 'name' => 'mountain.jpg', ), )

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:
58.54 ms | 1007 KiB | 4 Q