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 git.master, git.master_jit, rfc.property-hooks
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 ) )

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:
48.43 ms | 1324 KiB | 4 Q