3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( '/something/foo7', '/something/special/foo22', '/something/foo333', '/something/special/foo4', '/something/foo5', '/something/special/boo96', ); array_multisort( array_map(fn($v) => str_contains($v, '/special/'), $array), array_keys($array), $array ); var_export($array);
Output for git.master, git.master_jit
array ( 0 => '/something/foo7', 1 => '/something/foo333', 2 => '/something/foo5', 3 => '/something/special/foo22', 4 => '/something/special/foo4', 5 => '/something/special/boo96', )

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:
45.63 ms | 860 KiB | 4 Q