3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $campaignId=1; $dni=2222; $ani=33333; $vars = array("has_creditcard" => 1, "enabled" => 1, "campaign_id" => $campaignId, "document_number" => $dni); if(isset($ani) && !empty($ani)){ $vars["ani"] = $ani; } error_log(print_r($vars,true));
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
Array ( [has_creditcard] => 1 [enabled] => 1 [campaign_id] => 1 [document_number] => 2222 [ani] => 33333 )