3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = [ 'https://example.com/api/', 'https://www.example.com/test-subpath', 'https://www.example.com', 'example.com/test/page', 'www.example.com', 'www.subdomain.example.com', 'https://www.subdomain.example.com', 'subdomain.example.com', 'http://subdomain.example.com', 'https://subdomain.example.com', ]; foreach ($urls as $url) { echo filter_var($url, FILTER_VALIDATE_URL) ? 'OKAY' : 'FAIL', ': ', $url, PHP_EOL; }
Output for git.master_jit, git.master, rfc.property-hooks
OKAY: https://example.com/api/ OKAY: https://www.example.com/test-subpath OKAY: https://www.example.com FAIL: example.com/test/page FAIL: www.example.com FAIL: www.subdomain.example.com OKAY: https://www.subdomain.example.com FAIL: subdomain.example.com OKAY: http://subdomain.example.com OKAY: https://subdomain.example.com

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:
24.8 ms | 406 KiB | 5 Q