3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ip = '192.168.0.1'; $octets = explode('.', $ip); var_dump($octets);
based on eRpJ5
Output for 4.3.0 - 7.1.0
array(4) { [0]=> string(3) "192" [1]=> string(3) "168" [2]=> string(1) "0" [3]=> string(1) "1" }