3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $URL = 'bloppety'; $paramArr = array('A' => 'b'); $rtlo = 1337; $query = sprintf(" INSERT INTO `spooler`.`tasks` SET `url` = '%s', `serialized_params` = '%s', `rtlo` = %d, `product` = 'sharedsignup', `created` = NOW(), `next_attempt` = NOW() ", ($URL), (serialize($paramArr)), $rtlo ); var_dump($query);
Output for 4.3.0 - 7.1.0
string(238) " INSERT INTO `spooler`.`tasks` SET `url` = 'bloppety', `serialized_params` = 'a:1:{s:1:"A";s:1:"b";}', `rtlo` = 1337, `product` = 'sharedsignup', `created` = NOW(), `next_attempt` = NOW() "