3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $zoneparts = array_reverse(explode('.',"0.0.127")); $parts = explode('.',"127.0.0.1"); $intersect = array_intersect_assoc($zoneparts,$parts); print_r($intersect); if(array_keys($intersect) === range(0, count($intersect))) { echo "fu"; } ?>
Output for 4.3.0 - 7.1.0
Array ( [0] => 127 [1] => 0 [2] => 0 )