3v4l.org

run code in 300+ PHP versions simultaneously
<?php $collection = [ ['name' => 'b', 'symbol' => '#'], ['name' => '2a', 'symbol' => '$'], ['name' => '1', 'symbol' => '@'], ['name' => 'a', 'symbol' => '%'] ]; usort( $collection, fn($a, $b) => (ctype_alpha($b['name']) <=> ctype_alpha($a['name'])) ?: strnatcmp($a['name'], $b['name']) ); var_export($collection);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'name' => 'a', 'symbol' => '%', ), 1 => array ( 'name' => 'b', 'symbol' => '#', ), 2 => array ( 'name' => '1', 'symbol' => '@', ), 3 => array ( 'name' => '2a', 'symbol' => '$', ), )

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