3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
ActiveCampaignActiveCampaignCampaignActiveCampaignActiveCampaignActiveCampaignActiveCampaignCampaignActiveActiveCampaignCampaignActiveCampaignActiveCampaign15ActiveCampaignActiveCampaignCampaignActiveCampaignActiveCampaignActiveCampaignActiveCampaignCampaignActiveActiveCampaignCampaignActiveCampaignActiveCampaign30ActiveCampaignActiveCampaignCampaignActiveCampaignActiveCampaignActiveCampaignActiveCampaignCampaignActiveActiveCampaignCampaignActiveCampaignActiveCampaign45ActiveCampaignActiveCampaignCampaignActiveCampaignActiveCampaignActiveCampaignActiveCampaignCampaignActiveActiveCampaignCampaignActiveCampaignActiveCampaign60ActiveCampaignActiveCampaignCampaignActiveCampaignActiveCampaignActiveCampaignActiveCampaignCampaignActiveActiveCampaignCampaignActiveCampaignActiveCampaign75ActiveCampaignActiveCampaignCampaignActiveCampaignActiveCampaignActiveCampaignActiveCampaignCampaignActiveActiveCampaignCampaignActiveCampaignActiveCampaign90ActiveCampaignActiveCampaignCampaignActiveCampaignActiveCampaignActiveCampaignActiveCampaignCampaignActive