3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uris = [ '/auth/logout/msg/session/redirect_uri/sf/quote-details/show/632', '/auth/logout/msg/something/someothersomething/session/redirect_uri/sf/quote-details/show/632' ]; foreach($uris as $uri) { $pieces = explode('/', $uri); if ($pos = array_search("redirect_uri", $pieces, true) !== FALSE) { $cdr = array_slice($pieces, array_flip($pieces)['redirect_uri']+1); echo $uri, ' -> ', join('/', $cdr), "\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
/auth/logout/msg/session/redirect_uri/sf/quote-details/show/632 -> sf/quote-details/show/632 /auth/logout/msg/something/someothersomething/session/redirect_uri/sf/quote-details/show/632 -> sf/quote-details/show/632

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