3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ipString = "ffff:eeee:dddd:cccc:bbbb:aaaa:9999:8888"; $test = array(); preg_match("/^([0-9a-fA-F]+:?)$", $ipString, $test); var_dump($test); ?>

preferences:
35.58 ms | 402 KiB | 5 Q