3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isLocalIPAddress($IPAddress) { return ( !filter_var($IPAddress, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE ) ); } var_dump( isLocalIPAddress('127.0.0.1') ); var_dump( isLocalIPAddress('192.168.1.20') ); var_dump( isLocalIPAddress('64.233.160.0') );
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) bool(true) bool(false)

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:
186.73 ms | 405 KiB | 5 Q