3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'asd', 'ASD', 'sdf', 'SDF', 'Third', ); $b = array( '2 a', '1 b', '20 c', '10 d', '3 e', ); setlocale(LC_CTYPE, 'fi_FI'); array_multisort($b, SORT_LOCALE_STRING | SORT_FLAG_CASE, $a); var_dump($a, $b);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(3) "ASD" [1]=> string(3) "SDF" [2]=> string(3) "asd" [3]=> string(3) "sdf" [4]=> string(5) "Third" } array(5) { [0]=> string(3) "1 b" [1]=> string(4) "10 d" [2]=> string(3) "2 a" [3]=> string(4) "20 c" [4]=> string(3) "3 e" }

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