3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $service = "www"; $variation_array = array( 'lowercase true' => true, 'lowercase false' =>false, 'uppercase TRUE' =>TRUE, 'uppercase FALSE' =>FALSE, ); foreach ( $variation_array as $var ) { var_dump(getservbyname( $service, $var ) ); }
Output for 4.3.0 - 7.1.0
bool(false) bool(false) bool(false) bool(false)