3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "001122334 001122334455 0011 0011223344556677"; if (preg_match_all('/\b[a-fA-F0-9]{12}\b/', $string, $matches)) { print_r($matches[0]); } if (preg_match_all('/(?<!\S)[a-fA-F0-9]{12}(?!\S)/', $string, $matches)) { print_r($matches[0]); } if (preg_match_all('/(?<![a-fA-F0-9])[a-fA-F0-9]{12}(?![a-fA-F0-9])/', $string, $matches)) { print_r($matches[0]); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 001122334455 ) Array ( [0] => 001122334455 ) Array ( [0] => 001122334455 )

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:
118.62 ms | 405 KiB | 5 Q