3v4l.org

run code in 300+ PHP versions simultaneously
<?php function base26($value) { $name = ''; for ($exponent = 0; pow(26, $exponent) <= $value; $exponent++) { $digitValue = intval(pow(26, $exponent)); $remainder = $value % intval(pow(26, $exponent + 1)); $ascii = 64 + intval($remainder / $digitValue); $name = chr($ascii) . $name; $value -= $remainder; } return $name; } for ($i = 1; $i < 28; $i++) { echo $i . "->" . base26($i) . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
1->A 2->B 3->C 4->D 5->E 6->F 7->G 8->H 9->I 10->J 11->K 12->L 13->M 14->N 15->O 16->P 17->Q 18->R 19->S 20->T 21->U 22->V 23->W 24->X 25->Y 26->A@ 27->AA

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:
37.41 ms | 401 KiB | 8 Q