3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generate_some_id($id, $append) { for ($i = strlen($id); $i < 8; $i++) { $id = '0' . $id; } return strtoupper(strtolower(substr($append, 0, 2))) . $id; } echo generate_some_id(12547, 'Lorem ipsum');
Output for git.master, git.master_jit, rfc.property-hooks
LO00012547

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