3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $domain = 'foo.com'; if (substr($domain, 0, 7) == "http://") { $domain = substr_replace($domain, "", 0, 7); } $url = "http://" . $domain; $params = explode('.', $url); var_dump($params);

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
array(2) { [0]=> string(10) "http://foo" [1]=> string(3) "com" }
Output for Array change keys
array(2) { [0]=> string(10) "http://foo" [1]=> string(3) "com" }
Output for Lexical anon
array(2) { [0]=> string(10) "http://foo" [1]=> string(3) "com" }

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