3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "absd.com", "bfhgj.org", "sdfgh.net", "sdff.com", "jkuyh.ca", "example.com", "lkjhg.org.au", "bfhgj.co.uk", "blah.com", "sdfgh.org.uk" ]; usort( $array, fn($a, $b) => [strstr($a, '.'), $a] <=> [strstr($b, '.'), $b] ); var_export($array);
Output for rfc.property-hooks, git.master, git.master_jit
array ( 0 => 'jkuyh.ca', 1 => 'bfhgj.co.uk', 2 => 'absd.com', 3 => 'blah.com', 4 => 'example.com', 5 => 'sdff.com', 6 => 'sdfgh.net', 7 => 'bfhgj.org', 8 => 'lkjhg.org.au', 9 => 'sdfgh.org.uk', )

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:
40.45 ms | 1279 KiB | 4 Q