3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inventory = [ ['type' => 'fruit', 'price' => 3.50], ['type' => 'milk', 'price' => 2.90], ['type' => 'pork', 'price' => 5.43], ]; usort( $inventory, fn(array $a, array $b): int => $b['price'] <=> $a['price'] ); print_r($inventory);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [type] => pork [price] => 5.43 ) [1] => Array ( [type] => fruit [price] => 3.5 ) [2] => Array ( [type] => milk [price] => 2.9 ) )

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.66 ms | 406 KiB | 5 Q