3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern='(?:^(?:(?<a>(?:(?:[0-9]|[1-9][0-9]|1[0-7][0-9]))|(?:(?:[0-9]|[1-9][0-9]|1[0-7][0-9])\.\d)|180)!(?<b>(?:(?:[0-9]|[1-9][0-9]|[1-3][0-5][0-9]))|(?:(?:[0-9]|[1-9][0-9]|[1-3][0-5][0-9])\.\d)|360)!(?<c>-?(?:(?:(?:[0-8]|[1-8][0-9]))|(?:(?:[0-9]|[1-8][0-9])\.\d)|90)))$)'; $subject='123!360!-12.3'; preg_match('/' . $pattern . '/', $subject, $array); if(!empty($array)) var_dump($array['a'], $array['b'], $array['c']);
Output for git.master, git.master_jit, rfc.property-hooks
string(3) "123" string(3) "360" string(5) "-12.3"

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