3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ( $iter = 1; $iter <= 100; $iter++ ) { $print_number = true; if ( $iter % 3 === 0 ) { $print_number = false; echo "Active"; } if ( $iter % 5 === 0 ) { $print_number = false; echo "Campaign"; } if ( true === $print_number ) { echo $iter; } }
Output for 4.3.0 - 7.2.0
12Active4CampaignActive78ActiveCampaign11Active1314ActiveCampaign1617Active19CampaignActive2223ActiveCampaign26Active2829ActiveCampaign3132Active34CampaignActive3738ActiveCampaign41Active4344ActiveCampaign4647Active49CampaignActive5253ActiveCampaign56Active5859ActiveCampaign6162Active64CampaignActive6768ActiveCampaign71Active7374ActiveCampaign7677Active79CampaignActive8283ActiveCampaign86Active8889ActiveCampaign9192Active94CampaignActive9798ActiveCampaign