3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_next_colid(string $id): string { $length = \strlen($id); for ($i = $length - 1; $i >= 0; $i--) { if ($id[$i] === "\xff") { $id[$i] = "\0"; continue; } $id[$i] = \chr(\ord($id[$i]) + 1); return $id; } return str_repeat("\0", $length + 1); } var_dump( get_next_colid(get_next_colid('{')), get_next_colid(get_next_colid('<')), get_next_colid(get_next_colid('[')), get_next_colid(get_next_colid('(')), );
Output for rfc.property-hooks, git.master_jit, git.master
string(1) "}" string(1) ">" string(1) "]" string(1) "*"

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:
41.73 ms | 1243 KiB | 4 Q