3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arraynext = 'Date:21 Month:03 Year:2017 Amount:50 Category:Wow Account:The Note:This'; $endresult = preg_match("/\s*Amount:\s*(\d+)/", $arraynext, $match); echo $match[1];

preferences:
27.76 ms | 404 KiB | 5 Q