3v4l.org

run code in 300+ PHP versions simultaneously
<?php function variations($length, $chars) { $unique_chars = count_chars($chars, 3); if ($length <= 0 || $unique_chars <= 0) return 0; $additional = ($length > 1) ? variations($length - 1, $chars) : 0; return pow($unique_chars, $length) + $additional; } echo number_format(variations(5, 26));
Output for git.master, git.master_jit, rfc.property-hooks
12,356,630

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.77 ms | 401 KiB | 8 Q