3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'GB82WEST12345698765432'; $test2 = chunk_split ( $test, 4, ' '); echo $test .' ---> ' $test2."\n";
Output for 5.4.13
Parse error: syntax error, unexpected '$test2' (T_VARIABLE), expecting ',' or ';' in /in/0tck4 on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected '$test2' (T_VARIABLE), expecting ',' or ';' in ipCSA on line 4
Process exited with code 255.
Output for 5.3.23
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /in/0tck4 on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in ipCSA on line 4
Process exited with code 255.

preferences:
174.96 ms | 1395 KiB | 45 Q