3v4l.org

run code in 300+ PHP versions simultaneously
<?php $someArray = []; $someArray[] = "one"; $someArray[] = "two"; $someArray[] = "three"; $someArray[] = "four"; $anotherArray = []; $anotherArray[] = ","; $anotherArray[] = ":"; $anotherArray[] = "/"; $anotherArray[] = "-"; echo(implode($someArray, ',')); echo "\n"; echo(implode(',', $someArray)); echo "\n"; echo(implode($someArray, $anotherArray)); echo "\n"; echo(implode($anotherArray, $someArray));

preferences:
39.86 ms | 402 KiB | 5 Q