3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<table> <tr> <td> <?php // comment 1 if($cd_empr == 1){ ?> <some html code here> <?php // comment 2 }else if($cd_empr == 2){ ?> <some html code here> <?php } ?> </td> </tr> </table>
Output for 5.0.4 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.1.0
<table> <tr> <td> Notice: Undefined variable: cd_empr in /in/TNpiF on line 6 Notice: Undefined variable: cd_empr in /in/TNpiF on line 10 </td> </tr> </table>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.0.3
<table> <tr> <td> Notice: Undefined variable: cd_empr in /in/TNpiF on line 6 Notice: Undefined variable: cd_empr in /in/TNpiF on line 10 </td> </tr> </table>