3v4l.org

run code in 300+ PHP versions simultaneously
<?php $redirectUrl = "http://google.com"; var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST'])); $redirectUrl = "http://3v4l.org"; var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST'])); $redirectUrl = "http://google.com/3val.org"; var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST']));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "HTTP_HOST" in /in/ijCnf on line 4 Deprecated: strstr(): Passing null to parameter #2 ($needle) of type string is deprecated in /in/ijCnf on line 4 string(17) "http://google.com" Warning: Undefined array key "HTTP_HOST" in /in/ijCnf on line 7 Deprecated: strstr(): Passing null to parameter #2 ($needle) of type string is deprecated in /in/ijCnf on line 7 string(15) "http://3v4l.org" Warning: Undefined array key "HTTP_HOST" in /in/ijCnf on line 10 Deprecated: strstr(): Passing null to parameter #2 ($needle) of type string is deprecated in /in/ijCnf on line 10 string(26) "http://google.com/3val.org"

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:
61.4 ms | 403 KiB | 8 Q