3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.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
FILTER_FLAG_IPV4 = Notice: Use of undefined constant FILTER_FLAG_IPV4 - assumed 'FILTER_FLAG_IPV4' in /in/p98SG on line 3 FILTER_FLAG_IPV4 FILTER_FLAG_IPV6 = Notice: Use of undefined constant FILTER_FLAG_IPV6 - assumed 'FILTER_FLAG_IPV6' in /in/p98SG on line 4 FILTER_FLAG_IPV6 FILTER_FLAG_NO_PRIV_RANGE = Notice: Use of undefined constant FILTER_FLAG_NO_PRIV_RANGE - assumed 'FILTER_FLAG_NO_PRIV_RANGE' in /in/p98SG on line 5 FILTER_FLAG_NO_PRIV_RANGE FILTER_FLAG_NO_RES_RANGE = Notice: Use of undefined constant FILTER_FLAG_NO_RES_RANGE - assumed 'FILTER_FLAG_NO_RES_RANGE' in /in/p98SG on line 6 FILTER_FLAG_NO_RES_RANGE