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', ); usort($array, fn($a, $b) => str_contains($a, '/special/') <=> str_contains($b, '/special/')); var_export($array);
Output for git.master_jit, git.master
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:
50.28 ms | 854 KiB | 4 Q