3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Defining a variable:'; $variable_name = 'this is a string representation of a variable'\n; echo $variable_name; echo 'this is an integer representation of a variable'\n; echo $variable_name = 30; ?>
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in /in/foFQs on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_NS_SEPARATOR in /in/foFQs on line 3
Process exited with code 255.

preferences:
172.7 ms | 1395 KiB | 60 Q