3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '<p>Die folgenden Gebühren sind direkt in der Unterkunft zu bezahlen: </p> <ul><li>Kaution: 100 USD pro Tag</li><li>Hotelgebühr: 39.68 USD pro Unterkunft, pro Nacht</li></ul> Die Hotelgebühr enthält: <ul><li>Benutzung des Pools</li><li>Benutzung des Fitnesscenters oder -studios</li><li>Internetzugang</li><li>Telefongespräche</li></ul> <p>Diese Liste enthält alle Gebühren, die uns vom Hotel mitgeteilt wurden. Die erhobenen Gebühren können sich allerdings je nach Buchungszeitraum und Zimmerart ändern. USD 30 </p>'; $pattern = '((?P<precurrency>\S{1,3}) (?:\d{1,3}[,\.]?)+\d* (?P<postcurrency>\S{1,3}) )'; preg_match_all($pattern, $text, $currency); var_dump($currency);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> array(2) { [0]=> string(12) "on: 100 USD " [1]=> string(14) "hr: 39.68 USD " } ["precurrency"]=> array(2) { [0]=> string(3) "on:" [1]=> string(3) "hr:" } [1]=> array(2) { [0]=> string(3) "on:" [1]=> string(3) "hr:" } ["postcurrency"]=> array(2) { [0]=> string(3) "USD" [1]=> string(3) "USD" } [2]=> array(2) { [0]=> string(3) "USD" [1]=> string(3) "USD" } }

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:
61.59 ms | 402 KiB | 8 Q