3v4l.org

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