3v4l.org

run code in 300+ PHP versions simultaneously
<?php $elements = array( array( 'weight' => 100, 'index' => 1, 'html' => 'foo1', ), array( 'weight' => 20, 'index' => 2, 'html' => 'foo2', ), array( 'weight' => 100, 'index' => 3, 'html' => 'foo3', ), ); print_r( $elements ); asort( $elements ); print_r( $elements );
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [weight] => 100 [index] => 1 [html] => foo1 ) [1] => Array ( [weight] => 20 [index] => 2 [html] => foo2 ) [2] => Array ( [weight] => 100 [index] => 3 [html] => foo3 ) ) Array ( [1] => Array ( [weight] => 20 [index] => 2 [html] => foo2 ) [0] => Array ( [weight] => 100 [index] => 1 [html] => foo1 ) [2] => Array ( [weight] => 100 [index] => 3 [html] => foo3 ) )

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