3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'And 7 should have value of £7.2'; $match = []; preg_match('/\W/', $string, $match); var_export($match);

preferences:
40.13 ms | 402 KiB | 5 Q