3v4l.org

run code in 300+ PHP versions simultaneously
<?php $images = '<img id="my_image" src="image_10.gif" alt="12" /> <img id="my_image" src="image_21.gif" alt="12" /> <img id="my_image" src="image_33.gif" alt="12" /> <img id="my_image" src="image_4.gif" alt="12" /> <img id="my_image" src="image_56.gif" alt="12" /> <img id="my_image" src="image_60.gif" alt="12" /> <img id="my_image" src="image_19.gif" alt="12" />'; preg_match_all('~<img.*\>~', $images, $match); $match = array_slice($match[0], 0, 5); print '<pre>'; print_r($match);
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [0] => <img id="my_image" src="image_10.gif" alt="12" /> [1] => <img id="my_image" src="image_21.gif" alt="12" /> [2] => <img id="my_image" src="image_33.gif" alt="12" /> [3] => <img id="my_image" src="image_4.gif" alt="12" /> [4] => <img id="my_image" src="image_56.gif" alt="12" /> )

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:
193.13 ms | 406 KiB | 5 Q