3v4l.org

run code in 300+ PHP versions simultaneously
<?php use ArchitectureStandards\Helpers\ErrorFormatter; $re = '/@param\s+(\S+)\s+\$(\S+)/m'; $str = '/*@param test $arno @param test2 $lucie'; preg_match_all($re, $str, $matches); foreach ($matches as $match) { print_r($match[1]); }
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
@param test2 $lucietest2lucie

preferences:
73.04 ms | 402 KiB | 62 Q