3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AliasPool { protected static $i = 0; public static function get () { $alias = 'tag_'; $j = self::$i; while ($j > 26) { $alias .= chr(($j % 26) + oct('a')); $j = floor($j / 26); } self::$i++; return $alias; } } for ($i = 0; $i < 60; ++$i) { var_dump(AliasPool::get()); print "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" string(4) "tag_" Fatal error: Uncaught Error: Call to undefined function oct() in /in/MGrnP:8 Stack trace: #0 /in/MGrnP(17): AliasPool::get() #1 {main} thrown in /in/MGrnP 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:
38.87 ms | 402 KiB | 8 Q