3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = 'Ingress Intel Map https://www.ingress.com/intel?ll=55.756471,37.122987&z=17&pll=55.756471,37.122987'; $pat_portal = '/intel\?([a-z0-9\=\.\,\&]+)pll=(\d+.\d+),(\d+.\d+)$/'; $pat_location = '/intel\?ll=(\d+.\d+),(\d+.\d+)&z=(\d+)/'; if(preg_match($pat_portal, $subject, $matches)){ echo "портал: lat - {$matches[2]} , lng - {$matches[3]}"; }elseif(preg_match($pat_location, $subject, $matches)){ echo "локация: lat - {$matches[0]} , lng - {$matches[1]} , zoom - {$matches[2]}"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
портал: lat - 55.756471 , lng - 37.122987

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