3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sID = 'something'; echo "INSERT INTO `{$sID}_com` ({$sID}ID, komNAME, komDATE, komHTML, komSTATUS) VALUES ('$pID','$name','$time','$kom','$status')";
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Notice: Undefined variable: pID in /in/EkR1Z on line 4 Notice: Undefined variable: name in /in/EkR1Z on line 4 Notice: Undefined variable: time in /in/EkR1Z on line 4 Notice: Undefined variable: kom in /in/EkR1Z on line 4 Notice: Undefined variable: status in /in/EkR1Z on line 4 INSERT INTO `something_com` (somethingID, komNAME, komDATE, komHTML, komSTATUS) VALUES ('','','','','')
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: pID in /in/EkR1Z on line 4 Notice: Undefined variable: name in /in/EkR1Z on line 4 Notice: Undefined variable: time in /in/EkR1Z on line 4 Notice: Undefined variable: kom in /in/EkR1Z on line 4 Notice: Undefined variable: status in /in/EkR1Z on line 4 INSERT INTO `something_com` (somethingID, komNAME, komDATE, komHTML, komSTATUS) VALUES ('','','','','')