3v4l.org

run code in 500+ PHP versions simultaneously
<?php $productdata=array ( array('Price'=>30,'Stock'=>'stock3','Supplier'=>'supp3'), array('Price'=>10,'Stock'=>'stock1','Supplier'=>'supp1'), array('Price'=>20,'Stock'=>'stock2','Supplier'=>'supp2') ); usort($productdata, function($a, $b) { return $a['Price'] > $b['Price']; }); echo $productdata[0]["Stock"];
Output for rfc.property-hooks, git.master, git.master_jit
Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /in/trgdC on line 10 stock1

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:
41.53 ms | 1458 KiB | 4 Q