3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ "hello", "hello:me", "hello::me", "::me", "hello::hello::me", ]; foreach ($tests as $test) { preg_match_all('/([^:]+)::(.+)/', $test, $matches); print_r($matches); echo PHP_EOL; }

preferences:
46.06 ms | 402 KiB | 5 Q