3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vlink_url = 'https://www.youtube.com/watch?v=sTSA_sWGM44'; $query = parse_url($vlink_url, PHP_URL_QUERY); parse_str($query, $output); var_dump($output); //$videoId = $output['v'] ?? null; //$videoId = isset($output['v'])? $output['v'] : null; $videoId = null; if(isset($output['v'])){ $videoId = $output['v']; } echo 'final result: ' . $videoId;
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["v"]=> string(11) "sTSA_sWGM44" } final result: sTSA_sWGM44

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