3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://player.vimeo.com/video/322332324?byline=0'; // Get the path from the URL $path = parse_url($url, PHP_URL_PATH); // Explode the path on / to get the different fragments $fragments = explode('/', $path); // Now simply take the last part of the fragemnts $numbers = end($fragments); echo $numbers;
Output for git.master, git.master_jit, rfc.property-hooks
322332324

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