3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_fill_keys( range('a', 'j'), range(0, 105, 7) ); array_walk($array, sort(...)); var_export($array);
Output for git.master_jit, git.master
Fatal error: Uncaught TypeError: sort(): Argument #2 ($flags) must be of type int, string given in /in/HaU42:8 Stack trace: #0 [internal function]: sort(Array, 'a') #1 /in/HaU42(8): array_walk(Array, Object(Closure)) #2 {main} thrown in /in/HaU42 on line 8
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:
49.35 ms | 405 KiB | 5 Q