3v4l.org

run code in 500+ PHP versions simultaneously
<?php $args = array( // In this case notice is generated anyway. // 'test', 'test:1', 'test:1:2', 'test:1:2:3', ); foreach ($args as $arg) { list($type, $key) = explode(':', $arg, 2); $imploded = $type . ':' . $key; print $imploded !== $arg ? $arg . ' is not equal after explode/concat' : $arg . ' is equal after explode/concat'; print "\n"; }

preferences:
11.26 ms | 483 KiB | 6 Q