3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array( "2179454040" => "127.0.0.1:6379", "2159827012" => "127.0.0.1:6380", "2171050562" => "127.0.0.1:6380", "2153052555" => "127.0.0.1:6381", "2171236323" => "127.0.0.1:6381", "2162841922" => "127.0.0.1:6381", "2173346807" => "127.0.0.1:6382", "2171411418" => "127.0.0.1:6382", "2151534559" => "127.0.0.1:6382" ); echo "COUNT " . count($arr1); for ($i = 0; $i < count($arr1); $i++) { ksort($arr1[$i], SORT_NUMERIC); } var_dump($arr1);
Output for git.master, git.master_jit, rfc.property-hooks
COUNT 9 Fatal error: Uncaught TypeError: ksort(): Argument #1 ($array) must be of type array, null given in /in/L6aNB:21 Stack trace: #0 /in/L6aNB(21): ksort(NULL, 1) #1 {main} thrown in /in/L6aNB on line 21
Process exited with code 255.

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:
39.09 ms | 401 KiB | 8 Q