3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://localhost/Sub/Key/Key-XYZ-1234.php"; $path = parse_url($url, PHP_URL_PATH); $file = basename($path, '.php'); list($v1, $v2, $v3) = preg_split('/[-_]/', $file); echo "\$v1 = $v1\n\$v2 = $v2\n\$v3 = $v3\n";
Output for git.master, git.master_jit, rfc.property-hooks
$v1 = Key $v2 = XYZ $v3 = 1234

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