3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
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)