3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count++; $block_1 .= <<<EOT <figure id=\"img{$count}\"> <div class="image"><img src=\"{$row['imgpath']}\" alt=\"{$row['shortdesc']}\"></div><figcaption> <h1 class=\"product\">{$row['product']}</h1> <p class=\"description\">{$row['longdesc']}</p> </figcaption> </figure> EOT; $block_2 .= '<a href="#img'.$count.'"><img src="'.$row['imgpath'].'" alt="'.$row['shortdesc'].'"></a>'; var_dump($block_1);
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /in/nVmGq on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /in/nVmGq on line 13
Process exited with code 255.