3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip_hex = (string) 0xC0A8071B; $ip_octet = long2ip($ip_hex); $ip_num = ip2long($ip_octet); echo 'IP Num: ', $ip_hex, PHP_EOL; echo 'Num -> Hex: ', dechex($ip_hex), PHP_EOL; echo 'IP Octet: ', $ip_octet, PHP_EOL; echo 'IP Num: ', $ip_num, PHP_EOL; echo 'Num -> Hex: ', dechex($ip_num), PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
IP Num: 3232237339 Num -> Hex: c0a8071b IP Octet: 192.168.7.27 IP Num: 3232237339 Num -> Hex: c0a8071b

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