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 = ', dechex(FILTER_FLAG_IPV4), "\n"; echo 'FILTER_FLAG_IPV6 = ', dechex(FILTER_FLAG_IPV6), "\n"; echo 'FILTER_FLAG_NO_PRIV_RANGE = ', dechex(FILTER_FLAG_NO_PRIV_RANGE), "\n"; echo 'FILTER_FLAG_NO_RES_RANGE = ', dechex(FILTER_FLAG_NO_RES_RANGE), "\n";
Output for 5.2.0 - 7.1.0
FILTER_FLAG_IPV4 = 100000 FILTER_FLAG_IPV6 = 200000 FILTER_FLAG_NO_PRIV_RANGE = 800000 FILTER_FLAG_NO_RES_RANGE = 400000
Output for 4.3.0 - 5.1.6