3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (defined('AF_INET6')) { echo "PHP was compiled without --disable-ipv6 option"; } else { echo "PHP was compiled with --disable-ipv6 option"; } $in_addr = inet_pton('127.0.0.1'); $in6_addr = inet_pton('::1'); echo "\n"; var_dump(bin2hex($in_addr)); var_dump(bin2hex($in6_addr)); echo "\n"; echo $in6_addr;
Output for git.master, git.master_jit, rfc.property-hooks
PHP was compiled with --disable-ipv6 option string(8) "7f000001" string(32) "00000000000000000000000000000001" 

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.05 ms | 401 KiB | 8 Q