3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( '0', '00', '000', '0000', '00000', '000000', '0000000', '00000000'); $id_pattern = "/^\d{7}$/"; foreach($arr as $id){ if(preg_match($id_pattern, $id, $regs)) var_dump($regs); }
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> string(7) "0000000" }

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