3v4l.org

run code in 300+ PHP versions simultaneously
<?php $objects = [ (object)['Rate' => '10'], (object)['Rate' => '1'], (object)['Rate' => '2'], (object)['Rate' => '20'], (object)['Rate' => '22'] ]; usort($objects, function($a, $b) { return $b->Rate <=> $a->Rate; }); var_export($objects);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => (object) array( 'Rate' => '22', ), 1 => (object) array( 'Rate' => '20', ), 2 => (object) array( 'Rate' => '10', ), 3 => (object) array( 'Rate' => '2', ), 4 => (object) array( 'Rate' => '1', ), )

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:
59.05 ms | 406 KiB | 5 Q