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" ); 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
Fatal error: Uncaught TypeError: ksort(): Argument #1 ($array) must be of type array, null given in /in/LJSBe:18 Stack trace: #0 /in/LJSBe(18): ksort(NULL, 1) #1 {main} thrown in /in/LJSBe on line 18
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:
36.16 ms | 401 KiB | 8 Q