3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
SELECT assignment_activities.* FROM (assignment_activities) WHERE `iAssignmentId` = '1' ORDER BY assignment_activities.iAssignmentActivityId DESC