3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tagIds = array(1,2); if (!$tagIds) { $tagIds = implode(",", $tagIds); $tag = Tag::find("id IN ( $tagIds )"); } var_dump($tagIds);
Output for 4.3.0 - 7.2.6
array(2) { [0]=> int(1) [1]=> int(2) }