3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = '€2,'; echo '<pre>'; print_r(str_split($var, 1)); echo '</pre>'; echo '1 : .'$var[0].' - 2 : '.$var[1].' - '.$var[2];
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '$var' (T_VARIABLE), expecting ',' or ';' in /in/QhjPm on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /in/QhjPm on line 9
Process exited with code 255.