3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = '\x7F\0\0\x01'; preg_match_all('/\\\x?([\dA-F]+)/', $ip, $parts); $ip = implode('', array_map(function ($v) { return chr(hexdec($v)); }, $parts[1])); echo inet_ntop($ip) . "\n"; $ip = '\x7F\0\0\x01'; $ip = pack('H*', str_replace(array('\x', '\0'), array('', '00'), $ip)); echo inet_ntop($ip);
Output for rfc.property-hooks, git.master, git.master_jit
127.0.0.1 127.0.0.1

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:
48.88 ms | 1394 KiB | 4 Q