3v4l.org

run code in 300+ PHP versions simultaneously
<?php function array_filter_strlen($a, $l) { usort($a, 'strlen'); return $a; } print_r(array_filter_strlen(array('привет', 'мир', 'и', 'cyberforum'), 3));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: strlen() expects exactly 1 argument, 2 given in /in/ZaiPV:4 Stack trace: #0 [internal function]: strlen('\xD0\xBF\xD1\x80\xD0\xB8\xD0\xB2\xD0\xB5\xD1\x82', '\xD0\xBC\xD0\xB8\xD1\x80') #1 /in/ZaiPV(4): usort(Array, 'strlen') #2 /in/ZaiPV(8): array_filter_strlen(Array, 3) #3 {main} thrown in /in/ZaiPV on line 4
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:
53.88 ms | 401 KiB | 8 Q