3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'q','w', 'e', 'r' => 'vfbf' ]; function isAssociativeArray($array) { krsort($data, SORT_STRING); return !is_numeric(key($data)); } var_dump(isAssociativeArray($data));
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught TypeError: krsort(): Argument #1 ($array) must be of type array, null given in /in/OYAUF:9 Stack trace: #0 /in/OYAUF(9): krsort(NULL, 2) #1 /in/OYAUF(14): isAssociativeArray(Array) #2 {main} thrown in /in/OYAUF on line 9
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:
62.36 ms | 401 KiB | 8 Q