3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(0); define('SINGLE_QUOTE', '\''); define('COMMA', ','); define('SPACE', ' '); define('PERIOD', '.'); echo SINGLE_QUOTE PERIOD hello PERIOD COMMA PERIOD SPACE PERIOD world PERIOD SINGLE_QUOTE;
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'PERIOD' (T_STRING), expecting ',' or ';' in /in/NXPdP on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.25
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/NXPdP on line 10
Process exited with code 255.