3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_REQUEST['token_pre_pop'] = true; $_REQUEST['ids'] = '1000';//,1002,1004'; if (isset($_REQUEST['token_pre_pop'])) { $ids = $_REQUEST['ids']; $ids = explode(",", urldecode($ids)); $ids = "'".implode("','", $ids)."'"; echo $ids; // JSONed }
based on lANF0
Output for 4.3.0 - 7.2.0
'1000'