3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $idList = array( 1, 2, 3 ); function sql( $string ){ echo $string; } sql( 'SELECT * FROM employees WHERE FIND_IN_SET( employee_id,'.implode( ',', $idList ).')' );
Output for 4.3.0 - 7.1.0
SELECT * FROM employees WHERE FIND_IN_SET( employee_id,1,2,3)