3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(bin2hex(inet_pton('2001:0db8:85a3:08d3:1319:8a2e:0370:7344'))); var_dump(bin2hex(inet_pton('::1'))); var_dump(bin2hex(inet_pton('127.0.0.1')), bin2hex(inet_pton('::ffff:127.0.0.1')), bin2hex(inet_pton('::ffff:7f00:1'))); var_dump("SELECT 1 FROM IPv6Ranges WHERE X'" . bin2hex(inet_pton('127.0.0.1')) . "' BETWEEN `start` AND `end`");
Output for git.master, git.master_jit, rfc.property-hooks
string(32) "20010db885a308d313198a2e03707344" string(32) "00000000000000000000000000000001" string(8) "7f000001" string(32) "00000000000000000000ffff7f000001" string(32) "00000000000000000000ffff7f000001" string(68) "SELECT 1 FROM IPv6Ranges WHERE X'7f000001' BETWEEN `start` AND `end`"

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:
46.97 ms | 401 KiB | 8 Q