3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $classFile = <<<'EOD'<?php echo "Please don't run me!"; class ClassIWantToUsePlease { public function myMethod() { echo "Hello world!"; } } ?>EOD; echo $classFile;
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '<<' (T_SL) in /in/dsEYg on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_SL in /in/dsEYg on line 3
Process exited with code 255.