3v4l.org

run code in 300+ PHP versions simultaneously
<?php $names = array('Alpha', 'bravo', 'Charly', 'delta', 'Echo'); $sorts = array( 'regular' => SORT_REGULAR, 'numeric' => SORT_NUMERIC, 'string' => SORT_STRING, 'natural' => SORT_NATURAL, 'case' => SORT_FLAG_CASE, ); print_r($names); foreach ($sorts as $name => $flag) { sort($names, $flag); echo $name ."\r\n"; print_r($names); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Alpha [1] => bravo [2] => Charly [3] => delta [4] => Echo ) regular Array ( [0] => Alpha [1] => Charly [2] => Echo [3] => bravo [4] => delta ) numeric Array ( [0] => Alpha [1] => Charly [2] => Echo [3] => bravo [4] => delta ) string Array ( [0] => Alpha [1] => Charly [2] => Echo [3] => bravo [4] => delta ) natural Array ( [0] => Alpha [1] => Charly [2] => Echo [3] => bravo [4] => delta ) case Array ( [0] => Alpha [1] => Charly [2] => Echo [3] => bravo [4] => delta )

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