3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Ala ma 2 koty, Adam ma 4 psy"; preg_match_all("/(?P&lt;kto&gt;[A-Z]\w+)\s\w+\s(?P&lt;ile&gt;\d+)/", $str, $matches); print $matches[0][0] . "\n"; print $matches[0][1] . "\n"; print $matches[1][0] . "\n"; print $matches[1][1] . "\n";
Output for git.master, git.master_jit
Warning: preg_match_all(): Compilation failed: unrecognized character after (?P at offset 3 in /in/VHEQ0 on line 4 Warning: Trying to access array offset on value of type null in /in/VHEQ0 on line 5 Warning: Trying to access array offset on value of type null in /in/VHEQ0 on line 5 Warning: Trying to access array offset on value of type null in /in/VHEQ0 on line 6 Warning: Trying to access array offset on value of type null in /in/VHEQ0 on line 6 Warning: Trying to access array offset on value of type null in /in/VHEQ0 on line 7 Warning: Trying to access array offset on value of type null in /in/VHEQ0 on line 7 Warning: Trying to access array offset on value of type null in /in/VHEQ0 on line 8 Warning: Trying to access array offset on value of type null in /in/VHEQ0 on line 8
Output for rfc.property-hooks
Warning: preg_match_all(): Compilation failed: unrecognized character after (?P at offset 3 in /in/VHEQ0 on line 4 Warning: Trying to access array offset on null in /in/VHEQ0 on line 5 Warning: Trying to access array offset on null in /in/VHEQ0 on line 5 Warning: Trying to access array offset on null in /in/VHEQ0 on line 6 Warning: Trying to access array offset on null in /in/VHEQ0 on line 6 Warning: Trying to access array offset on null in /in/VHEQ0 on line 7 Warning: Trying to access array offset on null in /in/VHEQ0 on line 7 Warning: Trying to access array offset on null in /in/VHEQ0 on line 8 Warning: Trying to access array offset on null in /in/VHEQ0 on line 8

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:
40.12 ms | 402 KiB | 8 Q