3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataurl = array('http://test.com/embed-990.html', 'http://test2.com/embed-011.html', 'http://test3.com/embed-022.html'); foreach($dataurl as $url) { switch(parse_url($url, PHP_URL_HOST)) { case 'test.com': echo 'test domain'; break; case 'test2.com': echo 'test domain 2'; break; default: echo 'unknown'; break; } echo $url . PHP_EOL; }
Output for rfc.property-hooks, git.master, git.master_jit
test domainhttp://test.com/embed-990.html test domain 2http://test2.com/embed-011.html unknownhttp://test3.com/embed-022.html

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:
50.55 ms | 1696 KiB | 4 Q