3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_SERVER['HTTP_HOST'] = '192.168.56.1:3002'; $a = $_SERVER['HTTP_HOST']; $b = 'vagrant.khanovaskola.cz'; $c = 'vagrant.khanovaskola.cz_foo'; $d = 'foo_vagrant.khanovaskola.cz'; var_dump($a, $b, $c, $d); var_dump($a === $b);
Output for 4.3.0 - 7.1.7
string(17) "192.168.56.1:3002" string(23) "vagrant.khanovaskola.cz" string(27) "vagrant.khanovaskola.cz_foo" string(27) "foo_vagrant.khanovaskola.cz" bool(false)