3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cpf = 12345678912; if(is_numeric($cpf) && strlen($cpf) == 11) { $block1 = substr($cpf, 0, 3); $block2 = substr($cpf, 3, 3); $block3 = substr($cpf, 6, 3); $block4 = substr($cpf, 9); echo "$block1.$block2.$block3-$block4"; }
Output for git.master, git.master_jit, rfc.property-hooks
123.456.789-12

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