3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phrase = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"; $phraseLength = mb_strlen($phrase); $fromAngle = -80; $toAngle = 260; $radius = 12.5; $height = 30; $centerX = 40; $centerY = 15; $screen = array(); for ($y = 0; $y < $height; $y++) { $screen[$y] = array_fill(0, 80, " "); } $degree = (abs($fromAngle) + $toAngle) / $phraseLength; $curDegree = round($degree); for ($i = 0; $i < $phraseLength; $i++) { $x = round($radius * sin(deg2rad($curDegree)) * 2.1); $y = round($radius * cos(deg2rad($curDegree))); $curDegree += $degree; $screen[$centerY + $y][$centerX + $x] = mb_substr($phrase, $i, 1);; } foreach (array_reverse($screen) as $string) { echo implode("", $string) . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Я А Б Ю В Э Г Ь Д Ы Е Ъ Ё Щ Ж Ш З Ч И Ц Й Х К Ф Л У М Т Н С Р П О

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:
18.15 ms | 409 KiB | 8 Q