3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(version_compare(PHP_VERSION, '5.2') < 0) return; echo 'FILTER_FLAG_IPV4 = ',FILTER_FLAG_IPV4 ,"\n"; echo 'FILTER_FLAG_IPV6 = ',FILTER_FLAG_IPV6,"\n"; echo 'FILTER_FLAG_NO_PRIV_RANGE = ',FILTER_FLAG_NO_PRIV_RANGE,"\n"; echo 'FILTER_FLAG_NO_RES_RANGE = ', FILTER_FLAG_NO_RES_RANGE,"\n";
Output for 5.2.0 - 7.1.0
FILTER_FLAG_IPV4 = 1048576 FILTER_FLAG_IPV6 = 2097152 FILTER_FLAG_NO_PRIV_RANGE = 8388608 FILTER_FLAG_NO_RES_RANGE = 4194304
Output for 4.3.0 - 5.1.6