3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); setlocale(LC_COLLATE, 'tr_TR.utf8'); // or any other locale I use. $aInput['values'] = array('foo',1,'bar',2,'baz',true,'quux',false,'abc',null); uasort($aInput['values'],'strcoll'); var_dump($aInput['values']);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6 Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6 Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6 Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6 Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6 Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6 array(10) { [7]=> bool(false) [9]=> NULL [1]=> int(1) [5]=> bool(true) [3]=> int(2) [8]=> string(3) "abc" [2]=> string(3) "bar" [4]=> string(3) "baz" [0]=> string(3) "foo" [6]=> string(4) "quux" }

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:
41.5 ms | 403 KiB | 8 Q