3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Initialize a sentence to a variable $sentence = '練馬春日町Ⅳ 清掃レポート.pdf'; // Use preg_match() function to get the // first word of a string preg_match('/\b\w+\b/i', $sentence, $result); // Display result echo "The first word of string is: ".$result[0]; ?>
Output for git.master, git.master_jit, rfc.property-hooks
The first word of string is: pdf

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:
162.11 ms | 405 KiB | 5 Q