3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = gethostbyname ( 'www.example.com' ); $long = ip2long ( $ip ); if ( $long == - 1 || $long === FALSE ) { echo 'Invalid IP, please try again' ; } else { echo $ip . "\n" ; // 192.0.34.166 echo $long . "\n" ; // -1073732954 printf ( "%u\n" , ip2long ( $ip )); // 3221234342 }
Output for git.master, git.master_jit, rfc.property-hooks
Invalid IP, please try again

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