3v4l.org

run code in 200+ PHP versions simultaneously
<?php $IDs = [1,2,3,4,5]; $sql = 'UPDATE services_list SET servicename=? WHERE serviceID IN =.join(",", array_fill(0, count($IDs),"?")'; echo $sql;
based on a5EWP
Output for 5.6.0 - 7.4.1
UPDATE services_list SET servicename=? WHERE serviceID IN =.join(",", array_fill(0, count($IDs),"?")