Skip to main content
Commonmark migration
Source Link

#PHP, 27 26 24 Bytes# <?=+!!ip2long($argv1);

PHP, 27 26 24 Bytes

<?=+!!ip2long($argv[1]);

Based on @rexkogitans and @nwellnhof solutions Fails for 0.0.0.0 because PHP internal function 0.0.0.0 is not considered a valid IP address Try it!

#PHP, 27 26 24 Bytes# <?=+!!ip2long($argv1);

Based on @rexkogitans and @nwellnhof solutions Fails for 0.0.0.0 because PHP internal function 0.0.0.0 is not considered a valid IP address Try it!

PHP, 27 26 24 Bytes

<?=+!!ip2long($argv[1]);

Based on @rexkogitans and @nwellnhof solutions Fails for 0.0.0.0 because PHP internal function 0.0.0.0 is not considered a valid IP address Try it!

Removed 2 bytes due to ambigüous parenthesis
Source Link

#PHP, 27 2626 24 Bytes# <?=+(!!ip2long($argv[1])$argv1);

Based on @rexkogitans and @nwellnhof solutions Fails for 0.0.0.0 because PHP internal function 0.0.0.0 is not considered a valid IP address Try it!

#PHP, 27 26 Bytes# <?=+(!!ip2long($argv[1]));

Based on @rexkogitans and @nwellnhof solutions

#PHP, 27 26 24 Bytes# <?=+!!ip2long($argv1);

Based on @rexkogitans and @nwellnhof solutions Fails for 0.0.0.0 because PHP internal function 0.0.0.0 is not considered a valid IP address Try it!

Source Link

#PHP, 27 26 Bytes# <?=+(!!ip2long($argv[1]));

Based on @rexkogitans and @nwellnhof solutions