3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sql1=$sql2 = "SELECT assignment_activities.* FROM (assignment_activities) WHERE `iAssignmentId` = '1' ORDER BY assignment_activities.iAssignmentActivityId DESC LIMIT 10"; echo substr($sql1, 0, strrpos(strtolower($sql2), "limit"));
Output for 4.3.0 - 7.1.7
SELECT assignment_activities.* FROM (assignment_activities) WHERE `iAssignmentId` = '1' ORDER BY assignment_activities.iAssignmentActivityId DESC