3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/(?:(RRP\:).*?([0-9\.\-a-z]+)).*?(?:(Now\:).*?([0-9\.\-a-z]+)).*(Available \(.*\)|Unavailable|Special)/i'; $subject = ' RRP: £42.50 Now: £38.25 Save £4.25 ✔ Available (16 Ready to ship now) '; preg_match($pattern,$subject,$m); var_dump($m);
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { [0]=> string(99) "RRP: £42.50 Now: £38.25 Save £4.25 ✔ Available (16 Ready to ship now)" [1]=> string(4) "RRP:" [2]=> string(5) "42.50" [3]=> string(4) "Now:" [4]=> string(5) "38.25" [5]=> string(32) "Available (16 Ready to ship now)" }

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