3v4l.org

run code in 300+ PHP versions simultaneously
<?php $flightpaths = 'VIE-CAI hav-vra JFK-SYD'; if (!preg_match_all('~^([A-Z]{3})-([A-Z]{3})$~m', strtoupper($flightpaths), $out, PREG_SET_ORDER)) { echo 'Invalid Entry'; } else { foreach ($out as $row) { echo "Destination #1: {$row[1]}\n"; echo "Destination #2: {$row[2]}\n\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
Destination #1: VIE Destination #2: CAI Destination #1: HAV Destination #2: VRA Destination #1: JFK Destination #2: SYD

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