3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $stringtoparse = "hr. madsen"; $inttoparse = 55; echo <<<EOT Hej, mit navn er $stringtoparse Jeg er $inttoparse år gammel EOT; echo <<<'EOT' Hej, mit navn er $stringtoparse Jeg er $inttoparse år gammel EOT; ?>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Hej, mit navn er hr. madsen Jeg er 55 år gammelHej, mit navn er $stringtoparse Jeg er $inttoparse år gammel
Output for 5.1.0 - 5.1.1, 5.1.3 - 5.2.17
Parse error: syntax error, unexpected T_SL in /in/OKhA4 on line 10
Process exited with code 255.
Output for 5.1.2
Parse error: syntax error, unexpected T_SL in /in/OKhA4 on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_SL in /in/OKhA4 on line 10
Process exited with code 255.
Output for 4.4.3 - 4.4.9
Parse error: syntax error, unexpected T_SL, expecting ',' or ';' in /in/OKhA4 on line 10
Process exited with code 255.
Output for 4.4.2
Parse error: syntax error, unexpected T_SL, expecting ',' or ';' in /in/OKhA4 on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_SL, expecting ',' or ';' in /in/OKhA4 on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/OKhA4 on line 10
Process exited with code 255.