3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class AliasPool { static $i = 0; public static get () { $alias = 'tag_'; while ($i > 26) { $alias .= chr(($i % 26) + oct('a')); $i = floor($i / 26); } $i++; return $alias; } } for ($i = 0; $i < 60; ++$i) { var_dump(AliasPool::get()); print "\n"; }
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'get' (T_STRING), expecting variable (T_VARIABLE) in /in/XvMto on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in /in/XvMto on line 4
Process exited with code 255.