3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(is_string(''), is_string(' ')); # true true //$v = ' '; //$v[] = 1; $v = ''; $v[] = 1; var_dump $v;
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected '$v' (T_VARIABLE) in /in/F1U5p on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE in /in/F1U5p on line 11
Process exited with code 255.