3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inventory = [ ["price" => 3.50, "type" => "fruit"], ["price" => 2.90, "type" => "milk"], ["price" => 3.50, "type" => "veg"], ["price" => 5.43, "type" => "pork"], ["price" => 3.50, "type" => "bread"], ]; rsort($inventory); var_export($inventory);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'price' => 5.43, 'type' => 'pork', ), 1 => array ( 'price' => 3.5, 'type' => 'veg', ), 2 => array ( 'price' => 3.5, 'type' => 'fruit', ), 3 => array ( 'price' => 3.5, 'type' => 'bread', ), 4 => array ( 'price' => 2.9, 'type' => 'milk', ), )

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:
52.17 ms | 402 KiB | 8 Q