3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sourcestring="A string A string A string Of strings to match"; preg_match_all('/string.+{1}/',$sourcestring,$match); foreach($match[0] as $thisMatch){ echo "$thisMatch\n"; }
Output for git.master, git.master_jit
Warning: preg_match_all(): Compilation failed: quantifier does not follow a repeatable item at offset 10 in /in/2h0ih on line 3 Warning: Trying to access array offset on value of type null in /in/2h0ih on line 4 Warning: foreach() argument must be of type array|object, null given in /in/2h0ih on line 4
Output for rfc.property-hooks
Warning: preg_match_all(): Compilation failed: quantifier does not follow a repeatable item at offset 10 in /in/2h0ih on line 3 Warning: Trying to access array offset on null in /in/2h0ih on line 4 Warning: foreach() argument must be of type array|object, null given in /in/2h0ih on line 4

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:
37.75 ms | 401 KiB | 8 Q