3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(getservbyname('http'), getservbyname('https'));
Output for 5.3.0 - 7.2.0
Warning: getservbyname() expects exactly 2 parameters, 1 given in /in/aCDa1 on line 3 Warning: getservbyname() expects exactly 2 parameters, 1 given in /in/aCDa1 on line 3 NULL NULL
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for getservbyname() in /in/aCDa1 on line 3 Warning: Wrong parameter count for getservbyname() in /in/aCDa1 on line 3 NULL NULL