3v4l.org

run code in 500+ PHP versions simultaneously
<?php $contents = '04:19:58 | Player "xxx" (id=xxx pos=<3748.4, 5976.5, 403.3>)'; $pattern = '/(pos=)<([^,\r\n]*),([^,\r\n]*),([^,\r\n]*)>/'; if(preg_match_all($pattern, $contents, $matches)){ echo "Found matches:\n"; print_r($matches); } else{ echo "No matches found"; }
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.21, 8.5.0 - 8.5.7
Found matches: Array ( [0] => Array ( [0] => pos=<3748.4, 5976.5, 403.3> ) [1] => Array ( [0] => pos= ) [2] => Array ( [0] => 3748.4 ) [3] => Array ( [0] => 5976.5 ) [4] => Array ( [0] => 403.3 ) )

preferences:
93.67 ms | 1325 KiB | 4 Q