3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("here","we","go"); $array1[2] = 'go'; $array1[1] = 'we'; $array1[0] = 'here'; $array2 = array('here'); $array2[2] = 'go'; $array2[1] = 'we'; $array2[0] = 'here'; $str1 = implode(',',$array1); $str2 = implode(',',$array2); print:r($array1); print:r($array2);
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
Parse error: syntax error, unexpected ':' in /in/nuRAp on line 15
Process exited with code 255.

preferences:
186.38 ms | 1395 KiB | 58 Q