3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'Rohlík 4,99 Kč 51235', 'Rohlík CZK 4,99 51235', 'Rohlík Kč4,99 51235', 'Rohlík foo4,99 51235' ]; foreach ($strings as $string) { var_export( preg_match('/\b(?:(?:Kč|CZK) ?\K\d+(?:,\d+)?|\d+(?:,\d+)?(?= ?(?:Kč|CZK)))\b/u', $string, $m) ? $m[0] : 'not found' ); echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
'4,99' '4,99' '4,99' 'not found'

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