3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/\b(?: \d{6}[xX*]{2,9}\d{4} # BIN + masked + last4 | (?:\d{4}|[xX*]{4})(?:[ .-]?(?:\d{4}|[xX*]{4})){2,3} # blocs de 4 )\b/x'; $data = '497040726'; preg_match($pattern, $data, $matches); var_dump($matches);
Output for git.master_jit, git.master
array(0) { }

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:
49.9 ms | 704 KiB | 4 Q