3v4l.org

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