3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all = array( '127.0.0.1', '::1', '1::1::1', '0.0.0.0.0', '', 'localhost' ); foreach ($all as $one) { var_dump(inet_pton($one)); }

preferences:
27.3 ms | 405 KiB | 5 Q